当前位置:网站首页>Vscode basic configuration
Vscode basic configuration
2022-07-06 12:06:00 【Aboci Bang】
1. install VSCode( Official website :https://code.visualstudio.com/)
2. Install the following plug-ins ( Choose... On your own
):
![]() | ![]() |
3.VSCode Basic configuration
Select all clear VSCode Basic configuration ( It can also not be cleared )
tab Set the key to 2 A space
Use format document : Right click the main body of the file (html file 、vue file ...)
Select the format document plug-in
Set automatic formatting when saving
Set editor font size
Set auto wrap
Check auto wrap , Uncheck show thumbnails ( The pull-down bar on the right becomes normal )
Set file icon theme Source plugin :vscode-icons
![]() | ![]() |
Set up vue User code snippet : When using : newly build vue file , Direct input vue Then choose the one you named vue Code snippet then press Tab Key or enter key
Of course vbase It's also very good
{
"vue_learn_template": {
/* Quickly generate shortcut keys */
"prefix": "vue",
"body": [
"<template>",
"\t<div class=\"app\"></div>",
"</template>",
"<script>", "export default {", "\tdata() {", "\t\treturn {", "\t\t\tdata: null,", "\t\t};", "\t},", "\tmethods: {},", "\tmounted(){},", "\tcomputed: {},", "};", "</script>",
"<style lang=\"scss\" scoped>", ".app {
", "\tinput {
", "\t\toutline: 0;", "\t}", "}", "</style>"
],
"description": "vue Basic template " // Description of template
}
}
my VSCode settings.json The contents of the document
{
"security.workspace.trust.untrustedFiles": "open",
"[html]": {
"editor.defaultFormatter": "vscode.html-language-features"
},
"editor.fontSize": 16,
"editor.formatOnSave": true,
"bracketPairColorizer.depreciation-notice": false,
"[javascript]": {
"editor.defaultFormatter": "vscode.typescript-language-features"
},
"[json]": {
"editor.defaultFormatter": "vscode.json-language-features"
},
"explorer.confirmDelete": false,
"workbench.editorAssociations": {
"*.docx": "default"
},
"explorer.confirmDragAndDrop": false,
"javascript.updateImportsOnFileMove.enabled": "always",
"[css]": {
"editor.defaultFormatter": "vscode.css-language-features"
},
"[vue]": {
"editor.defaultFormatter": "octref.vetur"
},
"workbench.iconTheme": "vscode-icons",
"editor.mouseWheelZoom": true,
"editor.wordWrap": "on",
"workbench.colorTheme": "Community Material Theme Palenight High Contrast",
"editor.tabSize": 2,
"editor.renderWhitespace": "none",
"breadcrumbs.enabled": false,
"editor.fontFamily": "Fira Code Retina,Consolas, 'Courier New', monospace",
"editor.minimap.enabled": false,
"window.zoomLevel": 0.5,
"workbench.colorCustomizations": {
"activityBar.background": "#303030",// Left menu bar color
"titleBar.activeBackground": "#3e3e3e",// Top menu bar color
"titleBar.activeForeground": "#ffffff",// Top menu bar text color
"editor.selectionHighlightBackground": "#999999",
"editor.selectionBackground":"#797979",
"terminal.background": "#000000",
"terminal.foreground": "#968eeb",
"terminalCursor.background": "#eaeaea",
"terminalCursor.foreground": "#eaeaea",
"debugConsole.infoForeground":"#1e9fff",
"debugConsole.warningForeground":"#ff781e",// debugging REPL The foreground color of the warning message in the console .
"debugConsole.errorForeground":"#a20000",// debugging REPL The foreground color of the error message in the console .
//"debugConsole.sourceForeground":,// debugging REPL The foreground color of the source file name in the console .
//"debugConsoleInputIcon.foreground":,// Debug console input Flag Icon foreground .
},
}
adjustment VSCode Please visit :https://code.visualstudio.com/api/references/theme-color
边栏推荐
- Fashion-Gen: The Generative Fashion Dataset and Challenge 论文解读&数据集介绍
- vim命令行笔记
- Kaggle competition two Sigma connect: rental listing inquiries
- open-mmlab labelImg mmdetection
- Machine learning -- linear regression (sklearn)
- RuntimeError: cuDNN error: CUDNN_STATUS_NOT_INITIALIZED
- 【ESP32学习-1】Arduino ESP32开发环境搭建
- C language, log print file name, function name, line number, date and time
- Vert. x: A simple TCP client and server demo
- RuntimeError: cuDNN error: CUDNN_ STATUS_ NOT_ INITIALIZED
猜你喜欢
随机推荐
互联网协议详解
程序员老鸟都会搞错的问题 C语言基础 指针和数组
JS object and event learning notes
ESP学习问题记录
MySQL realizes read-write separation
Arm pc=pc+8 is the most understandable explanation
Inline detailed explanation [C language]
互聯網協議詳解
FTP file upload file implementation, regularly scan folders to upload files in the specified format to the server, C language to realize FTP file upload details and code case implementation
Small L's test paper
open-mmlab labelImg mmdetection
Characteristics, task status and startup of UCOS III
uCOS-III 的特点、任务状态、启动
Reno7 60W super flash charging architecture
Understanding of AMBA, AHB, APB and Axi
Linux yum安装MySQL
C language, log print file name, function name, line number, date and time
Correspondence between STM32 model and contex M
Cannot change version of project facet Dynamic Web Module to 2.3.
Vert. x: A simple TCP client and server demo