Visual Studio Code's standing shortcut key

Source: Internet
Author: User
Tags json


Sun Guangdong 2015.12.31






Official shortcut key Daquan: https://code.visualstudio.com/docs/customization/keybindings






Visual Studio Code is a great editor that starts very fast and can be used entirely in place of other text file editing tools. can also be used to do development, support a variety of languages, compared to other Ides, lightweight fully configurable also integrates git feel very suitable for front-end development. So I studied it carefully. The future of the document may be used as the main tool. main Command Box


The most important feature is F1 or ctrl+shift+p Open command panel, in this command box can be executed vscode any command, or even close the editor.
Click Backspace will enter into the ctrl+p mode.
Enter > in ctrl+p to return to Ctrl+shift+p mode.
In the Ctrl+p window can also directly enter the file name, jump to the file? List the currently executable actions! Display errors or warnings, can also ' ctrl+shift+m: Jump to the number of lines, you can also ctrl+g directly into the @ jump to the symbol (search variables or functions), you can also ctrl+shift+o directly into the @: According to the category jump symbol, Find a property or function, or you can enter it ctrl+shift+o: Enter # to find the symbol by name, you can also ctrl+tCommon shortcut keys Editor and Window management open multiple windows at the same time (view multiple items)Open a new window: ctrl+shift+n Close window: ctrl+shift+wopen multiple editors at the same time (view multiple files)Switch between the new file Ctrl + N file Ctrl+tab cut out a new editor (up to 3) ctrl+\, or you can hold down the Ctrl mouse click on the Explorer filename in the left-right 3 editor shortcut key ctrl+1 ctrl+2 ctrl+3 Cycle between 3 editors Ctrl + ' editor swap position, ctrl+k and press left or rightCode editing Formatting adjustmentsLine indent ctrl+[Ctrl +] CTRL + V CTRL + v. If unchecked, copy or cut a whole line of code formatting by default: Shift+alt+f, or ctrl+shift+p after you enter format code to move one line up or down: alt+up or ALT + Down copy one line up: Shift+alt+up or Shift+alt+down inserts a row below the current line Ctrl+enter inserts a row above the current line Ctrl+shift+entercursor-relatedMove to the beginning of the line: Home moves to the end of the file: End moves to the beginning of the document: Ctrl+end moves to the start of the file: Ctrl+home moves to the definition: F12 defines the thumbnail: one glance at a time without jumping past alt+f12 move to the back half bracket ctrl+shift+] Select from the cursor to the end of the line shift+end select Shift+home Delete all words from the beginning to the right of the cursor Ctrl+delete Shrink/expand selection:shift+alt+left and Shift+alt+right Multi-cursor: You can select multiple places consecutively, then modify together, Alt+click add Cursor or Ctrl+alt+down or ctrl+alt+up and select all matching Ctrl+shift+l ctrl+d the next match is also selected (By my custom to delete the current line, see below ctrl+shift+k) fallback previous cursor operation Ctrl+uRefactoring CodeFind All references: Shift+f12 also modify all matches in this file: Ctrl+f12 rename: For example, to modify a method name, you can select and press F2, enter a new name, return, you will find all the files have been modified. Jump to the next error or warning: when there are more than one error, you can press F8 jump-click to see diff in explorer Select File Right-click Set files to compare, then need to compare the file right-select compare with ' file_name _you_chose '.Find ReplacementsFind ctrl+f Find replace ctrl+h entire folder find Ctrl+shift+f
Match: * to match one or more characters in a path segment? To match on the one character in a path segment * * to match any number of the path segments, including none {} to group conditions (e.g. {**/*.html,**/*.txt} matches all HTML and txt files) [] to declare a range of characters to match (e.g, example.[ 0-9] to match on example.0,example.1, ...Show RelatedFullscreen: F11 Zoomin/zoomout:ctrl + =/ctrl +-Sidebar display/hidden: ctrl+b Sidebar 4 major features: Show Explorer ctrl+shift+e show Searchctrl+shift+f show G Itctrl+shift+g Show Debugctrl+shift+d Show Outputctrl+shift+uotherAutoSave: File, AutoSave, or ctrl+shift+p, enter automodify default shortcut keys


Keyboard shortcuts, Preferences, File--



Modify Keybindings.json, my display here C:\Users\Administrator\AppData\Roaming\Code\User\keybindings.json


// Place your key bindings in this file to overwrite the defaults
[
     //ctrl+space is switched by the input method shortcut key
     {
         "key": "ctrl+alt+space",
         "command": "editor.action.triggerSuggest",
         "when": "editorTextFocus"
     },
     // ctrl+d deletes a line
     {
         "key": "ctrl+d",
         "command": "editor.action.deleteLines",
         "when": "editorTextFocus"
     },
     {
         "key": "ctrl+shift+k", // swapped with the shortcut to delete a line :)
         "command": "editor.action.addSelectionToNextFindMatch",
         "when": "editorFocus"
     },
     //ctrl+shift+/multiline comments
     {
         "key":"ctrl+shift+/",
         "command": "editor.action.blockComment",
         "when": "editorTextFocus"
     }
]


Plugins


The new version supports Plug-in installation



Plug-in market https://marketplace.visualstudio.com/#VSCode Install plugins



F1 Input Extensions






Click the first one to start the installation or upgrade, or you can enter ext install ctrl+p
Clicking the second will list the extensions that have been installed and can be uninstalled from

















Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.