Sun Guangdong 2015.12.31
Official shortcut key Encyclopedia: https://code.visualstudio.com/docs/customization/keybindings
Visual Studio Code is a great editor that starts very quickly and can be used instead of other text file editing tools. It can also be used for development, support for a variety of languages, lightweight fully configurable versus other Ides, and integrated git feels very suitable for front-end development. So I took a closer look at the document. The future may be used as a major tool. Main Command Box
The most important feature is the F1 or ctrl+shift+p Open command panel, in which you can execute any of the Vscode commands, or even close the editor.
Click Backspace will enter the CTRL+P mode.
Enter > in ctrl+p and return to ctrl+shift+p mode.
You can also enter the filename directly under the Ctrl+p window, jump to the file? list the currently executable actions! display errors or warnings, or ' ctrl+shift+m: jump to the number of rows, or you can ctrl+g directly into the @ jumps to symbol (search variables or functions), or you can ctrl+shift+o directly into @: Depending on the category to jump symbol, look for properties or functions, or ctrl+shift+o input: Enter # search symbol by name, You can also open multiple windows (view multiple items) at the same time ctrl+t a common shortcut editor and window Management open a new window: ctrl+shift+n Close window: ctrl+shift+w Open multiple editors (view multiple files) at the same time create a new file ctrl+n file switch between ctrl+tab cut out a new editor (up to 3) ctrl+\, you can also hold down CTRL mouse click on the file name in the Explorer left-right 3 editor shortcut keys ctrl+1 ctrl+2 ctrl+3 3 editors cycle through Ctrl + ' editor swap position, ctrl+k then adjust code line indent by left or right code edit format ctrl+[ ctrl+] ctrl+c ctrl+v if unchecked, Copy or cut a whole line of code by default: Shift+alt+f, or ctrl+shift+p, enter the format code to move one line up or down: alt+up or alt+down up and down a row: Shift+alt+up or Shift+alt+down inserts a row below the current line Ctrl+enter inserts a row above the current row ctrl+shift+enter cursor correlation moves to the beginning of the line: Home moves to the end of a file: Ctrl + End moved to the beginning of the file: Ctrl+home moved to the definition: F12 thumbnail: Just one glance without jumping past alt+f12 move to the back half bracket ctrl+shift+] Select from cursor to line end Shift+end Select from beginning to Cursor shift+home Delete all the words 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 them 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 (which I have customized to delete the current line, see below CTRL+SHIFT+K) rollback the previous cursor operation Ctrl+u Refactoring code found all references: Shift+f12 also modifies 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, carriage return, will find all the files have been modified. Jump to the next error or warning: when there are multiple errors, you can press F8 to jump to view the diff in the Explorer select the file right click set file to compare, and then need to compare the file on the right button to select compare with ' File_name_you_chose '. Find replace find ctrl+f find replace ctrl+h Find in entire folder ctrl+shift+f
Matching characters: * to match one or more characters in a path segment? To match on one character in path segment * * to match any number of 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, ... Display related full screen: F11 Zoomin/zoomout:ctrl + =/ctrl +-side bar/hidden: Ctrl+b Sidebar 4 features display: Show Explorer ctrl+shift+e shows Searchctrl+shift+f S How to Gitctrl+shift+g show Debugctrl+shift+d show outputctrl+shift+u Other auto Save: File-> AutoSave, or ctrl+shift+p, enter auto Modify default Shortcut keys
File-> Preferences-> keyboard shortcuts
Modify Keybindings.json, my display is here C:\Users\Administrator\AppData\Roaming\Code\User\keybindings.json
1
2
3
4
5
6
7 8 9
26 (
est
)
Place your key bindings in this file to overwrite the defaults
[
//ctrl+space be switched input shortcut keys occupy
{
"key": "Ctrl +alt+space ",
Command": "Editor.action.triggerSuggest",
"when": "Editortextfocus"
},
//Ctrl + D Delete a row
{
"key": "Ctrl+d",
"command": "Editor.action.deleteLines", "When
": "Editortextfocus"
},
{
"key": "Ctrl+shift+k",///is swapped with the shortcut key to delete a row:)
"command": " Editor.action.addSelectionToNextFindMatch ",
" when ":" Editorfocus "
},
//ctrl+shift+/multiline comment
{
"key": "ctrl+shift+/", "
Command": "Editor.action.blockComment",
"when": "Editortextfocus"
}
]
Plug - ins
New version Support plugin installed
Plug-in market https://marketplace.visualstudio.com/#VSCode installing Plug-ins
F1 Input Extensions
Click First to start installation or upgrade, or you can ctrl+p enter ext install into
Click on the second one to list the extensions that you have installed, which you can uninstall
from:http://blog.csdn.net/u010019717/article/details/50443970