Goto Definition
HBuilderX has a powerful jump function, as follows:
- Goto Previous Location
- Cursor jump
- Goto Line
- Goto the specified rank
- Goto Matching Bracket
- Goto BookMarkets
- Goto Scroll Bar
- Goto Definition
- Goto Definition to New Column
- .....
Goto Previous Location
In HBuilderX, Alt+Left
(MacOSX: ctrl + -
) or click <
on the toolbar, to return to the previous cursor position.
Goto Line
Go to line shortcut:ctrl + G
Goto the specified rank
Supported from HBuilderX 2.8.10+
- input
0
to jump to the first line (Supported from HBuilderX 3.1.13+) - input
$
to jump to the last line. (Supported from HBuilderX 3.1.13+)
HBuilderX supports using the command line to jump to the specified row and column.
# Example:
# File path, must be an absolute path
/Applications/HBuilderX-Alpha.app/Contents/MacOS/HBuilderX /Users/hx/filename.md:2:10
Goto Definition
Goto definition is an important part of what makes an editor useful.
HBuilderX has a powerful syntax analysis engine that can accurately jump to the defined position.
The shortcut key to go to the definition is Alt+D
, and the mouse operation is Alt+left click
.
Remarks: Support switching [Ctrl+left mouse button] or [Alt+left mouse button] to go to definition (menu [select], [switch to "Alt+Click" for Multi-Cursor] or [switch to "⌘+Click" for Multi-Cursor])
HBuilderX supports multi-result goto definition.
When there are multiple results for goto definition, hovering the mouse with Alt
key pressed will list all the results. You can jump to the desired result by mouse selection
or using the up and down arrow keys
.
Goto Definition to New Column
Another feature of HBuilderX is Goto definition to column
.
ctrl+alt+left click
, you can open the defined code on the other side for easy viewing.
Found mistake? Want to participate in editing? Edit this page on GitHub
HBuilderX plug-in development document, not translated into English, welcome to contribute. Translate this document on github