WebStorm uses shortcuts, quick collection

1. Essential shortcut keys

  • Ctrl+/: comment the current line
  • Ctrl+Shift+/: insert a comment at the current position
  • Ctrl+Alt+/: block Comment, and Focus to the first line, and write the comment description
  • Ctrl+Shift+A: Before and after selecting the current label, modify the label
  • F11: Full screen
  • < li>Shift+F11: Full-screen Do Not Disturb mode, only edit the current file

  • Alt+F3: select all the same words
  • Alt+.: close tab
  • Alt+Shift+number: split screen display
  • Alt+number: switch to open the Nth file
  • Shift+right-click drag: there are many cursors, used to change or insert column content
  • Mouse forward and back keys can switch Tab files
  • Press Ctrl, click or select one by one, multiple positions that need to be edited are available
  • Press Ctrl+Shift+up and down keys, you can Replace line
  • Ctrl+Shift+P: open the command panel
  • Ctrl+P: search for files in the project
  • Ctrl+G: jump to the number OK
  • Ctrl+W: close the currently open file
  • Ctrl+Shift+W: close all open files
  • Ctrl+Shift+V: paste and format
  • Ctrl+D: select a word, repeat to add the next same word
  • Ctrl+L: select a row, repeat to add to the next row in turn
  • Ctrl+Shift+L: select multiple lines
  • Ctrl+Shift+Enter: insert a new line before the current line
  • Ctrl+X: delete the current line
  • Ctrl+M: jump to the corresponding bracket
  • Ctrl+U: soft undo, undo the cursor position
  • Ctrl+J: select the label content
  • Ctrl+ F: find content
  • Ctrl+Shift+F: find and replace
  • Ctrl+H: replace
  • Ctrl+R: go to method
  • < li>Ctrl+N: New window

  • Ctrl+K+B: Switch sidebar
  • Ctrl+ Shift+M: Select the current parenthesis content, repeat the optional parenthesis itself
  • Ctrl+F2: Set/delete mark

    2. Select type shortcuts

  • Ctrl+← Move the cursor unitarily to the left, move the cursor quickly
  • Ctrl+→ Move the cursor unitarily to the right, move the cursor quickly
  • shift+↑ Select multiple lines up
  • shift+↓ select multiple lines down
  • Shift+← select text to the left
  • Shift+→ select text to the right
  • Ctrl+Shift+← unit to the left Select text flexibly
  • Ctrl+Shift+→ Select text unitically to the right
  • Ctrl+Shift+↑ Exchange the line where the cursor is with the previous line of code (insert the line where the cursor is Before the previous line)
  • Ctrl+Shift+↓ swap the line where the cursor is with the next line of code (insert the line where the cursor is after the next line)
  • Ctrl+Alt+↑ Add more Line cursor, you can edit multiple lines at the same time
  • Ctrl+Alt+↓ Add multiple lines of cursor down, you can edit multiple lines at the same time
  • Ctrl+D select the text occupied by the cursor and continue the operation The next same text will be selected
  • Alt+F3 Select the text and press the shortcut key to select all the same text at once for simultaneous editing. Take a chestnut: quickly select and change all the same variable names, function names, etc.
  • Ctrl+L to select the entire line, continue to select the next line, the effect is the same as Shift+↓
  • < li>Ctrl+Shift+L first select multiple lines, and then press the shortcut key, the cursor will be inserted at the end of each line, you can edit these lines at the same time

  • Ctrl+Shift+M select the content in the brackets (Continue to select parent brackets). Take a chestnut: Quickly select and delete the code in the function, rewrite the function body code or rewrite the content in the brackets
  • Ctrl+M Move the cursor to the end or the beginning of the brackets
  • Ctrl+Enter to insert a new line in the next line. For example: even if the cursor is not at the end of the line, you can quickly insert a line down
  • Ctrl+Shift+Enter to insert a new line in the previous line. Give a chestnut: even if the cursor is not at the beginning of the line, you can quickly insert a line upwards
  • Ctrl+Shift+[ to select the code, press the shortcut key to collapse the code
  • Ctrl+Shift+] to select the code , Press the shortcut key to expand the code
  • Ctrl+K+0 expand all collapsed codes

    3. Edit shortcut keys

  • Ctrl+K+K from Delete the code from the cursor to the end of the line
  • Ctrl+Shift+K to delete the entire line
  • Ctrl+/ comment single line
  • Ctrl+Shift+/ comment multiple lines
  • li>

  • Ctrl+J merges the selected lines of code into one line. For example: Combine the CSS properties of multiple lines into one line
  • Ctrl+Shift+D Copy the entire line where the cursor is located and insert it into the next line
  • Tab indent to the right
  • li>

  • Shift+Tab indent to the left
  • Ctrl+K+U to uppercase
  • Ctrl+K+L to lowercase
  • Ctrl+Z Undo
  • Ctrl+Y to undo undo
  • Ctrl+U soft undo, it feels the same as Gtrl+Z
  • Ctrl+F2 to set bookmarks
  • Ctrl+T interchange left and right letters
  • F6 word check spelling

    4. Search shortcut keys

  • Ctrl+F Open the search box at the bottom to find keywords
  • Ctrl+shift+F to search in a folder. The difference from ordinary editors is that sublime allows you to add multiple folders for searching. It is a little high-end, not researched.
  • Ctrl+ P Open the search box. Give a chestnut: 1. Enter the file name in the current project, quickly search the file, 2. Enter @ and keywords, find the function name in the file, 3. Enter: and a number, jump to the line of code in the file, 4. Enter # and keywords to find the variable name
  • Ctrl+G opens the search box, automatically with:, enter the number to jump to the line of code. Take a chestnut: Quickly locate in a file with a long page code
  • Ctrl+R opens the search box, automatically brings @, enters a keyword, and finds the function name in the file. Take a chestnut: Quickly find a function on a page with many functions
  • Ctrl+: Open the search box, automatically add #, enter keywords, and find variable names, attribute names, etc. in the file
  • Ctrl+Shift+P to open the command box. Scene chestnut: Open the naming box, enter keywords, and call sublime text or plug-in functions, such as using package to install plug-ins
  • Esc to exit the cursor multi-line selection, exit the search box, command box, etc.

    5. Display shortcut keys

  • Alt+Shift+1 window split screen, restore the default 1 screen (non-keypad numbers)
  • Alt+Shift+2 left and right split screen -2 columns
  • Alt+Shift+3 left and right split screen-3 columns
  • Alt+Shift+4 left and right split screen-4 columns
  • Alt+Shift+ 5 equally divided 4 screens
  • Alt+Shift+8 vertical split screen-2 screen
  • Alt+Shift+9 vertical split screen-3 screen
  • or right click Open the tab, select vertical split or horizontal split
  • Ctrl+K+B to open/close the sidebar
  • F11 full screen mode
  • Shift+F11 Do Not Disturb Mode
  • Ctrl+Tab Switch the tabs of the current window in the order of file browsing
  • Ctrl+PageDown Switch the tabs of the current window to the left Ctrl+PageUp Switch to the right Tabs of the current window

Leave a Comment

Your email address will not be published.