Vscode quick start
Write directory title here
Install
plugin installation
Ctrl + Shift + X (Plugin Store):
Auto Close Tag
Auto-close HTML/XML tagsAuto Rename Ta
g automatically completes the synchronous modification of the label on the other sidefileheader
The top comment template can define information such as author and time, and will automatically update the last modification time. The shortcut key ctrl+alt+i automatically enters author information and modification information at the beginning of the fileProject Manager
Time-consuming when switching projects frequentlyHTML CSS Support
Smart prompt CSS class name and idHTML Snippets
Smart prompt HTML tags, as well as tag meaningPath Intellisense
Automatically prompt file path, support various quick import filesVetur
Vue multi-functional integration plugin, including: syntax highlighting, smart prompt, emmet, error prompt, formatting, auto-completion, debugger. The official Vue plugin of vscode, a must for Vue developersGitLens
Can display the author of each line of code and the submission timeGit history
Git historySVG Viewer
Preview SVG imageColor Info
Provides information about your use of color in CSS. You can preview the information about the color model (HEX, RGB, HSL and CMYK) in the color block just by hovering the cursor over the colorHTML Boilerplate
You just need to enter html in an empty file and press the tab key to generate a clean document structureCSS Peek
Trace to where the CSS classes and ids are defined in the stylesheet. When you right-click on a selector in an HTML file, select the "Go to Definition and Peek definition" option, and it will send you the CSS code for the style settingsOpen-In-Browser
VSCode does not provide a built-in interface to open files directly in the browser. This plugin adds the option to view files in the default browser in the shortcut menu, and to open the command panel option in the client (Firefox, Chrome, IE)
plugin location
After the modification, I thought that the reference path was changed, and the previously downloaded plug-ins needed to be downloaded again. Of course, although the one downloaded before on the C drive is useless, it is still there and needs to be deleted manually!
default location
Modify the default path
code --extensions-dir E:\vscode\extensions
Modify the path of the vscode default reference plug-in
The default reference plug-in path is the same as the default download path, so if you change the download, you must also change the reference, and modify the target in the shortcut of the vscode software, such as:"D:\Microsoft VS Code\Code.exe" --extensions-dir "E:\vscode\extensions"
Always configure code on the command line
-
VScode installation directory/bin
-
My Computer/Properties/Advanced System Settings/Environment Variables/User Variables/PATH Variable
-
Open vscode in CMD
code .
basic operation
- Command Palette:
Ctrl+Shift+P
- Multi-cursor editing:
Alt+Shift+i
Alt+鼠标单击
- jump
- beginning of line
Home
- end of line
End
- document header
Ctrl+Home
- end of document
Ctrl+End
- beginning of line
- Delete a line:
Ctrl+Shift+K
- Batch selection of words:
Ctrl+D
- Newline:
Alt+上下
- copy:
Alt+Shit+上下
- Notes:
Ctrl+/
- indentation:
Ctrl+[]
- Convert case:
Ctrl+Shift+P
entertran
- Quick open file:
Ctrl+p
input文件名
,Ctrl+Enter
it will be opened in a new window - Line jump:
Ctrl+g
enter the line number, orCtrl+p
enter:
the input line number