DataGrip uses advanced - code prompts and formatting (2)

1. Variable rename

Click on the variable that needs to be renamed, press the Shift+F6 shortcut key, the rename dialog box will pop up, and enter a new name



 2. Automatically detect unresolved objects

If the table name and field name do not exist, datagrip will automatically prompt. At this time, for the table name or field name in question, pressing Alt+Enter will automatically prompt whether to create a table or add a field.



 3. Permission to define the field name

For queries that use table aliases, but the fields do not use alias prefixes, datagrip can automatically add prefixes, hover the mouse over the fields that need to add alias prefixes, and use the Alt+Enter shortcut key



 4, * wildcard automatic expansion

When querying, we will use select * to query all columns. This is a bad habit. Datagrip can quickly expand columns. Position the cursor after * and press the Alt+Enter shortcut key.



 5. Uppercase automatic conversion

It is a good habit to use uppercase for sql. If lowercase is used, you can place the cursor on the field or table name that needs to be converted, and use the Ctrl+shift+U shortcut to automatically convert

 

6, sql format

Select the sql code that needs to be formatted and use the shortcut Ctrl+Alt+L

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326475811&siteId=291194637