Esta página ainda não está disponível no idioma selecionado. Estamos trabalhando para adicionar mais opções de idiomas. Agradecemos sua compreensão.

Compute
Elastic Cloud Server
Huawei Cloud Flexus
Bare Metal Server
Auto Scaling
Image Management Service
Dedicated Host
FunctionGraph
Cloud Phone Host
Huawei Cloud EulerOS
Networking
Virtual Private Cloud
Elastic IP
Elastic Load Balance
NAT Gateway
Direct Connect
Virtual Private Network
VPC Endpoint
Cloud Connect
Enterprise Router
Enterprise Switch
Global Accelerator
Management & Governance
Cloud Eye
Identity and Access Management
Cloud Trace Service
Resource Formation Service
Tag Management Service
Log Tank Service
Config
OneAccess
Resource Access Manager
Simple Message Notification
Application Performance Management
Application Operations Management
Organizations
Optimization Advisor
IAM Identity Center
Cloud Operations Center
Resource Governance Center
Migration
Server Migration Service
Object Storage Migration Service
Cloud Data Migration
Migration Center
Cloud Ecosystem
KooGallery
Partner Center
User Support
My Account
Billing Center
Cost Center
Resource Center
Enterprise Management
Service Tickets
HUAWEI CLOUD (International) FAQs
ICP Filing
Support Plans
My Credentials
Customer Operation Capabilities
Partner Support Plans
Professional Services
Analytics
MapReduce Service
Data Lake Insight
CloudTable Service
Cloud Search Service
Data Lake Visualization
Data Ingestion Service
GaussDB(DWS)
DataArts Studio
Data Lake Factory
DataArts Lake Formation
IoT
IoT Device Access
Others
Product Pricing Details
System Permissions
Console Quick Start
Common FAQs
Instructions for Associating with a HUAWEI CLOUD Partner
Message Center
Security & Compliance
Security Technologies and Applications
Web Application Firewall
Host Security Service
Cloud Firewall
SecMaster
Anti-DDoS Service
Data Encryption Workshop
Database Security Service
Cloud Bastion Host
Data Security Center
Cloud Certificate Manager
Edge Security
Situation Awareness
Managed Threat Detection
Blockchain
Blockchain Service
Web3 Node Engine Service
Media Services
Media Processing Center
Video On Demand
Live
SparkRTC
MetaStudio
Storage
Object Storage Service
Elastic Volume Service
Cloud Backup and Recovery
Storage Disaster Recovery Service
Scalable File Service Turbo
Scalable File Service
Volume Backup Service
Cloud Server Backup Service
Data Express Service
Dedicated Distributed Storage Service
Containers
Cloud Container Engine
Software Repository for Container
Application Service Mesh
Ubiquitous Cloud Native Service
Cloud Container Instance
Databases
Relational Database Service
Document Database Service
Data Admin Service
Data Replication Service
GeminiDB
GaussDB
Distributed Database Middleware
Database and Application Migration UGO
TaurusDB
Middleware
Distributed Cache Service
API Gateway
Distributed Message Service for Kafka
Distributed Message Service for RabbitMQ
Distributed Message Service for RocketMQ
Cloud Service Engine
Multi-Site High Availability Service
EventGrid
Dedicated Cloud
Dedicated Computing Cluster
Business Applications
Workspace
ROMA Connect
Message & SMS
Domain Name Service
Edge Data Center Management
Meeting
AI
Face Recognition Service
Graph Engine Service
Content Moderation
Image Recognition
Optical Character Recognition
ModelArts
ImageSearch
Conversational Bot Service
Speech Interaction Service
Huawei HiLens
Video Intelligent Analysis Service
Developer Tools
SDK Developer Guide
API Request Signing Guide
Terraform
Koo Command Line Interface
Content Delivery & Edge Computing
Content Delivery Network
Intelligent EdgeFabric
CloudPond
Intelligent EdgeCloud
Solutions
SAP Cloud
High Performance Computing
Developer Services
ServiceStage
CodeArts
CodeArts PerfTest
CodeArts Req
CodeArts Pipeline
CodeArts Build
CodeArts Deploy
CodeArts Artifact
CodeArts TestPlan
CodeArts Check
CodeArts Repo
Cloud Application Engine
MacroVerse aPaaS
KooMessage
KooPhone
KooDrive

Editor

Updated on 2023-03-17 GMT+08:00

This section describes how to customize syntax highlighting, SQL history information, templates, and formatters.

Syntax Highlighting

Perform the following steps to customize SQL highlighting:

  1. Choose Settings > Preferences from the main menu.

    The Preferences dialog box is displayed.

  2. Choose Editor > Syntax Coloring.

    The Syntax Coloring pane is displayed.

  3. Click the color button to customize the color for a syntax type.

    For example, click to customize the color for Strings. A dialog box is displayed prompting you to select a color.

    Select a color for a specific syntax type. You can select one of the basic colors or customize a color.

    NOTE:

    Click Restore Defaults in the Syntax Coloring pane to restore the default color.

  4. Click OK. The Restart Data Studio dialog box is displayed.
  5. Click Yes to restart Data Studio. If any export, import or execution operations are in progress, the Process is running dialog box is displayed.
  6. Click OK to wait till the operations are complete or click Force Restart to cancel the operations.

    NOTE:

    The Preferences.prefs file contains the custom color settings. If the file is damaged, Data Studio will display the default settings.

    The customized color will be used after you restart Data Studio.

SQL History

You can set the value of SQL History Count and also the number of characters saved for each query in SQL History.

Perform the following steps to set the value of SQL History Count and also the number of characters saved for each query in SQL History:

  1. Choose Settings > Preferences from the main menu.

    The Preferences dialog box is displayed.

  2. Choose Editor > SQL History.

    The SQL History pane is displayed.

  3. Set the number of queries to be saved in the SQL History Count field.

    NOTE:

    The value ranges from 1 to 1000. The current value of this field will be displayed.

  4. Set the value of SQL Query Characters to the maximum number of characters allowed in each query that is saved in SQL History.

    NOTE:

    The value ranges from 1 to 1000. You can enter 0 to remove the character limit. The current value of this field will be displayed.

  5. Click Apply.
  6. Click OK.

    NOTE:
    • Click Restore Defaults in the Syntax Coloring pane to restore the default value.
    • SQL History Count defaults to 50 and SQL Query Characters defaults to 1000.
    • If the input value is less than the original one, data may be lost. In this case, a message is displayed to notify you of the data loss risk and ask you whether to proceed.
    • If you move away from this pane without saving the changes, a message is displayed to notify you of the unsaved changes.
    • The number of pinned queries is not affected by the changed value of the SQL History Count field. For example, if the number of pinned queries is 50 and SQL History Count is set to 25, 50 pinned queries will be displayed in SQL History.
    • If the value of SQL Query Characters is changed, the new value applies only to queries added after the change.

Adding a Template

Data Studio allows you to create, edit, and remove a template. For details about templates, see Using Templates.

NOTE:

If the default settings are restored, all user-defined templates will be removed from the list.

Perform the following steps to create a template:

  1. Choose Settings > Preferences from the main menu.

    The Preferences dialog box is displayed.

  2. Choose Editor > Templates.

    The Templates pane is displayed.

  3. Click New.
  4. Enter a template name in the Name field.
  5. Enter description in the Description field.
  6. Enter a SQL statement pattern in the Pattern field.

    NOTE:

    The syntax of the text entered in Pattern will be highlighted.

  7. Click OK.

Editing a Template

Perform the following steps to edit a template:

  1. Choose Settings > Preferences from the main menu.

    The Preferences dialog box is displayed.

  2. Choose Editor > Templates.

    The Templates pane is displayed.

  3. Click Edit.
  4. Edit the name in the Name field as required.
  5. Edit the description in the Description field as required.
  6. Edit the SQL statement pattern in the Pattern field as required.

    NOTE:

    The syntax of the text entered in Pattern will be highlighted.

  7. Click OK.

Removing a Template

Perform the following steps to remove a template:

  1. Choose Settings > Preferences from the main menu.

    The Preferences dialog box is displayed.

  2. Choose Editor > Templates.

    The Templates pane is displayed.

  3. Select the template to be removed, and click Remove.

    The template is removed from the Templates pane.

    NOTE:

    Default templates that are removed can be added back using the Restore Removed option. It will restore the template to the last updated version. However, the Restore Removed option is not applicable to user-defined templates.

Restoring the Default Template Settings

Perform the following steps to restore the default template settings:

  1. Choose Settings > Preferences from the main menu.

    The Preferences dialog box is displayed.

  2. Choose Editor > Templates.

    The Templates pane is displayed.

  3. Select at least one default template that has been modified and restore the default template settings.
  4. Click Revert to Default.

Formatter

Data Studio allows you to set the tab width and convert tabs to spaces during indent and unindent operations. For details, see Indenting or Un-indenting Lines.

Perform the following steps to customize the indent size and convert tabs to spaces:

  1. Choose Settings > Preferences from the main menu.

    The Preferences dialog box is displayed.

  2. Choose Editor > Formatter.

    The Formatter pane is displayed.

  3. Select Insert Space to convert tabs to spaces, or Insert Tab to add or remove tabs when indenting or unindenting lines.
  4. Enter the indent size in Indent Size to define the indent/unindent/space length.

Transaction

Perform the following steps to edit settings in Transaction:

  1. Choose Settings > Preferences from the main menu.

    The Preferences dialog box is displayed.

  2. Choose Editor > Transaction.

    The Transaction pane is displayed.

  3. In the Auto Commit window, you can perform the following operations:

    • Select Enable to enable the Auto Commit feature. In this case, transactions are automatically committed and cannot be manually committed or rolled back.

    • Select Disable to disable the Auto Commit feature. In this case, transactions can be manually committed or rolled back.

    NOTE:

    Auto Commit defaults to Enable.

Folding a SQL Statement

Perform the following steps to fold a SQL statement:

  1. Choose Settings > Preferences from the main menu.

    The Preferences dialog box is displayed.

  2. Choose Editor > Folding.

    The Folding pane is displayed.

  3. Select Enable or Disable. By default, Enable is selected.

    • Enable: indicates that the SQL folding feature is enabled Supported SQL statements can be folded or unfolded.
    • Disable: indicates that the SQL folding feature is disabled
      NOTE:

      Any change in the Folding parameter takes effect only in new editors, and will not take effect in opened editors until they are restarted.

Font

Perform the following steps to configure Font:

  1. Choose Settings > Preferences from the main menu.

    The Preferences dialog box is displayed.

  2. Choose Editor > Font.

    The Font pane is displayed.

  3. Configure the font size, which ranges from 1 to 50 and defaults to 10.

Auto Suggest

Perform the following steps to configure Auto Suggest:

  1. Choose Settings > Preferences from the main menu.

    The Preferences dialog box is displayed.

  2. Choose Editor > Auto Suggest.

    The Auto Suggest pane is displayed.

  3. In the Auto Suggest pane, configure Auto Suggest Min Character. The value ranges from 2 to 10 and defaults to 2.

    To enable the Auto Suggest feature, sort the following groups:

    1. Keywords
    2. Data types
    3. Loaded database objects
      NOTE:
      • Each group must be sorted.
      • Databases are classified by keyword and data type.
      • If database is not connected, default keywords, that is, database type, must be displayed.
      • When you enter a period (.), only related database objects are displayed. Keywords and data types are not displayed.
      • The Auto Suggest feature can be enabled using shortcut keys.

Usamos cookies para aprimorar nosso site e sua experiência. Ao continuar a navegar em nosso site, você aceita nossa política de cookies. Saiba mais

Feedback

Feedback

Feedback

0/500

Selected Content

Submit selected content with the feedback