• Common shortcuts (keymaps:Default)
  • Query shortcut Keys
  • Automatic code
  • Copy shortcut
  • The highlighted
  • Other shortcuts
  • run
  • debugging
  • navigation
  • bookmarks
  • The editor

Common Shortcut keys

Set shortcut keys: File -> Settings -> IDE Settings -> Keymap -> Select “Eclipse” -> then “Copy” -> customize (your own custom) shortcut keys

Common shortcuts (keymaps:Default)

Esc key editor (from tool window) F1 help do not press, very card! F2 (Shift+F2) Down/up Highlight errors or warnings Quickly Locate F3 Look down where keywords appear F4 Look up variable sources F5 Copy files/folders F6 Move F11 Toggle Bookmarks F12 Return to previous tools window

Note: some shortcut keys can only be used without changing the shortcut keys

Query shortcut Keys

CTRL+SHIFT+N Find the file, open the file in the project (similar to CTRL+SHIFT+ R in Eclipse), CTRL+SHIFT+ALT+N to find the method or variable (JS) in the class. CTRL+ALT+B find all subclasses CTRL+SHIFT+B find the class of the variable CTRL+G locate the line, CTRL+SHIFT+F Find text in the current window CTRL+SHIFT+F Find text in the specified path CTRL+R Replace text in the current window CTRL+SHIFT+R Replace text in the specified path ALT+SHIFT+C Find the modified file, Recent change history CTRL+E Most recently opened file F3 Find the next SHIFT+F3 find the previous F4 Find the variable source CTRL+ALT+F7 Select the character find where the project appears ALT+F7 Directly search the selected character CTRL+ F7 search the selected character in the file

Automatic code

ALT+ Enter Import package, auto correct CTRL+ALT+L Formatting code CTRL+ALT+I Auto indent CTRL+ALT+O Optimize import classes and packages CTRL+E Recently changed files/code CTRL+SHIFT+SPACE toggle window CTRL+ALT+SPACE Class name or interface name prompt (conflict with system) CTRL+P method parameter prompt, display default parameter CTRL+J automatic code prompt, ALT+INSERT generates code (such as GET,SET methods, constructors, etc.) in TRY{} IF{} ELSE{}

Copy shortcut

F5 Copy file/folder CTRL+C Copy CTRL+V Paste CTRL+X Cut, Delete Line CTRL+D Copy Line CTRL+ Y Delete Line caret CTRL+SHIFT+V Can copy multiple text

The highlighted

CTRL+F Highlight selected text jump up or down to the next or previous one F2 (Shift+F2) Highlight Error or Warning Quick Location Shift+F2 Highlight error or Warning Quick Location CTRL+ Shift+ F7 Highlight multiple keywords. Local History VCS/SVN Alt + Backquotes (‘) Quickly pop-up VCS menu Ctrl + K Submit project VCS Ctrl + T Update project View recent changes from VCS Alt + Shift + C

Other shortcuts

CTRL+Z Backward (code Regret) CTRL+SHIFT+Z Forward CTRL+H Display class structure diagram CTRL+ F12 file structure Pop-up CTRL+SHIFT+ H method hierarchy CTRL+ Alt+H call hierarchy CTRL+Q Display code comments CTRL+W select the code, press it continuously for other effects CTRL+ Shift+W reduce the current selection to the previous state CTRL+B go to the declaration, CTRL+O Magic method CTRL+/ Comment // Uncomment CTRL+SHIFT+/ Comment /… / CTRL+ [] Move the cursor to the beginning or end of {}[] CTRL+SHIFT+[] Select block code, which can be quickly copied CTRL+ ‘-/+’: You can collapse any block of code in your project, including any element in HTM with nodeType =3, function, or object direct, and so on. Instead of selecting the fold, it automatically recognizes the fold.

CTRL + ‘.’: Folds the code of the selected code

Ctrl+Shift+U Ctrl+Shift+ I Quick view variable or method definition source Ctrl+ ALT+F12 Explorer open folder, Jump to the current file location on disk ALT+F1 Select the current file or any view toolbar in the menu SHIFT+ALT+INSERT vertical editing mode

CTRL+ALT ←/→ Return to last edited position ALT+ ←/→ Switch code view, label switch ALT+ ↑/↓ Move quickly between methods to position ALT+ ‘7’: display the current class/function structure. Similar to the effect of Outline in Eclipse. I tried it out a little better than Aptana, but it still doesn’t fully display the method names under Prototype. Variable renaming/refactoring allows you to rename not only filenames but also function names, which can search referenced files, and local variables. You can also rename the tag name. Sublime Text has a similar shortcut: CTRL + Shift + D.

CTRL + Shift + Enter (if()) CTRL + Shift + Up/Down (Move row, merge selected row, Code selected area move UP/DOWN) CTRL+UP/DOWN Cursor jumps to the first or last line of the editor display area under ESC cursor Returns to the edit box SHIFT+ESC light cursor Returns to the edit box, close useless Windows CTRL+F4 Close the current editor or TAB

Ctrl + Alt + V to introduce variables Ctrl + Alt + F is similar to introducing variables Ctrl + Alt + C to introduce constants

Ctrl + Tab Toggle tabs and tool Windows Ctrl + Shift + A Find shortcut Alt + # [0-9] Open the corresponding tool window Ctrl + Shift + F12 Toggle maximize Editor Alt + Shift + F Add to favorites Alt + Shift + I Check the current file with the current configuration file Ctrl + backquotes (‘) Quickly switch the current color scheme/code scheme/shortcut key scheme/interface scheme Ctrl + Alt + S open the Settings dialog (conflict with QQ)

run

Alt + Shift + F10 Select Configuration and Run Alt + Shift + F9 Select Configuration and Debug Shift + F10 Run Shift + F9 Debug Ctrl + Shift + F10 Run Within the Configuration editor Ctrl + Shift + X runs the command line

debugging

F8 step F7 step Shift + F7 Smart Shift + F8 step ALT + F9 Run to cursor ALT + F8 calculate expression F9 restore program Ctrl + F8 Toggle breakpoint Ctrl + Shift + F8 View breakpoint

navigation

Shift + Esc key hide active or last active window Ctrl + Shift + F4 Close active run/message / /… TAB Ctrl + Shift+ Backspace key navigation to the last edit position Ctrl + Alt+B to implement (S) Ctrl + Shift+I Open quick Definition query Ctrl + U go to super-method/super-class Alt + Home displays the navigation bar

bookmarks

Ctrl + F11 Toggle bookmarks mnemonic Ctrl + # [0-9] go to numbered bookmarks Shift + F11 show bookmarks

The editor

Ctrl + Q Quick document query ALT + INSERT generated code… Getters, setter methods, constructors) Ctrl + O override method Ctrl + I implementation methods

Alt + Enter shows intended actions and quick fixes Shift + Tab indent/unindent selected lines

Ctrl + Shift + J Smart Line Connection (HTML and JavaScript only) Ctrl + Enter Smart Line Split (HTML and JavaScript only) Shift + Enter Start a new line

Ctrl + Delete Delete word (Word) Ctrl + Backspace Delete Word Start Ctrl + Keypad + / – Expand/collapse code block Ctrl + Shift + Keypad + Expand All Ctrl + Shift + Numeric Keypad Close All