Specific shortcut key location: Tools → Custom Shortcut Key View
hot key | illustrate |
---|---|
ctrl + / | Add comments (js: // 注释 , css: /* 注释 */ , vue/nvue templates: <!-- 注释 --> ) |
Ctrl + C | Copy the current line or selected code block to the clipboard |
Ctrl + X | Cut the current line or selected code block to the clipboard |
Ctrl + V | Paste content from clipboard |
Ctrl + D | delete the line where the cursor is |
ctrl + w | close current tab |
ctrl + Q | close other files |
Alt + number | Switch to the first tab |
Ctrl + left mouse button | Multi-cursor: add a cursor |
Ctrl + right mouse button | Multi-cursor: cancel one cursor |
Ctrl +Alt +↑↓ |
Multi-cursor: column selection, you can also use Alt + mouse long press and drag to select |
Ctrl + E (mac is cmd+d ) |
The same words can be selected for batch processing. |
ctrl + k | format code |
Ctrl + Shift + R | Copy the current line or selected code block and paste it after the cursor line |
Ctrl + F | Quickly find and replace code within files |
Ctrl + Alt + F | Quickly find code and replace code in the project |
Alt/Ctrl + Shift + U | Selected code block, converted to uppercase |
Alt + Shift + L | Selected code block, converted to lowercase |
Alt + Shift + T | Selected code block, capitalized |
Shift + ↑ ↓ ←→ |
Up, down, left, right, select the code |
Ctrl + ↑ ↓ |
Move the selected row up and down |
Ctrl +Shift + home | Select the content from the current cursor position to the beginning of the text |
Ctrl +Shift + end | Select the content from the current cursor position to the end of the text |
Alt + D | Go to definition, also Alt+left mouse click |
Alt+W | Single document navigation interface |
Ctrl + Alt + left mouse button click | Go to the definition column, you can open the code of a definition on the right side for common viewing |
Ctrl + R | run project |
Ctrl + U | Issue items |
Ctrl + Alt + , | HX related settings |
1. Indentation format
Location: Edit → Indentation → Tab Width: 2 spaces.
2. When developing in hx uni-app
, you can quickly generate conditionally compiled code fragments by entering ifdef
3. The code assistant of hx, you can alt+数字
directly select an item by pressing the selection, similar to the Chinese input method digital word selection
4. Select the area and directly add double quotes, single quotes, square brackets, braces, and parentheses to the programming unit (word or phrase)
5. When a line of code is very long, you must drag the scroll bar to view the content behind it, but after setting soft wrap, the code will automatically wrap according to the screen size, which is very convenient to read.
Location: Tools→Settings→Check Word Wrap
6. When a lot of files are opened, the specific location of the current file in the project cannot be found. You can do this:
On the current file editing page: click the right mouse button → locate in project manager. Just jump to the project location where it is.
7. If you want to find the location of the folder on the computer, you can do this:
On the current file editing page: click the right mouse button → open in an external resource manager. Navigate to the exact location of the file on your computer.