Vs Code常用插件及个人Settings.json配置

Vs code常用插件及Settings.json配置文件

Anaconda Extension Pack
Path Autocomplete
Python
Pylance
YAML
Bracket Pair Colorizer # 括号颜色
Code Runner # 运行python文件
Comment Translate # 划词翻译
Dracula Official # 主题
GitLens–Git supercharged # git插件
Vetur # vue
vscode-icons # 图标库
Auto Rename Tag # html自动修改标签
Vue 2 Snippets # html自动补全
Beautify
HTML CSS Support
Chinese # 中文版

settings文件配置内容

{
	// 字体设置
	"editor.fontFamily": "Fira Code",//后边的引号中写上要设置的字体类型,个人比较喜欢Fira Code
	"editor.fontLigatures": true, //设置字体大小,这个不多说都明白
	"editor.fontWeight": "normal",//这个设置字体粗细,可选normal,bold,"100"~"900"等,选择合适的就行
	"search.followSymlinks": false,		// 搜索下列符号链接
	"workbench.colorTheme": "Dracula",	// 工作台颜色主题
	"vetur.format.options.tabSize": 4,	// tab占4个空格
	"files.autoSave": "afterDelay",	// 文件自动保存
	"update.mode": "none",	// 更新模式
	"git.autofetch": true,		// git自动获取
	// 控制格式化不会自动换行
	"vetur.format.defaultFormatter.js": "vscode-typescript",	// js格式化设置工具
	"vetur.format.defaultFormatter.html": "js-beautify-html",	// html格式化设置工具
	"workbench.iconTheme": "vscode-icons",	// 工作台图标主题
	"python.languageServer": "Pylance",		// Python语言服务器
	"editor.insertSpaces": false,	// 编辑器插入空格

	"explorer.confirmDelete": false,	// 删除时是否需要提示二次确认
	// "editor.renderWhitespace":"all",		// 在显示空格或tab符时是否填充....
	"vsicons.dontShowNewVersionMessage": true,		// 相同功能的插件推荐是否都装上
	// "python.linting.flake8Enabled": true,	// Python遵循flake8E规则

	"editor.suggestSelection": "first",		// 编辑建议选择
	"editor.quickSuggestions": {		// 编辑快速建议
		"strings": true
	},
	
	"[vue]": {
		"editor.defaultFormatter": "octref.vetur"	// 默认格式化程序
	},
	"[javascript]": {
		"editor.defaultFormatter": "vscode.typescript-language-features"	// 默认格式化程序
	},
	"[html]": {
		"editor.defaultFormatter": "vscode.html-language-features"	// 默认格式化程序
	},
	// "[markdown]": {
	// 	"editor.defaultFormatter": "mervin.markdown-formatter"	// md默认格式化工具
	// },
	"[json]": {
		"editor.defaultFormatter": "vscode.json-language-features"		// json默认格式化工具
	},
	"vetur.format.defaultFormatterOptions": {		// vetur格式默认格式设置工具选项
		"js-beautify-html": {
			"wrap_attributes": "auto"
		},
		"prettyhtml": {
			"printWidth": 100,
			"singleQuote": false,
			"wrapAttributes": false,
			"sortAttributes": false
		}
	},
	"code-runner.executorMap": {

		"javascript": "node",
		"java": "cd $dir && javac $fileName && java $fileNameWithoutExt",
		"c": "cd $dir && gcc $fileName -o $fileNameWithoutExt && $dir$fileNameWithoutExt",
		"cpp": "cd $dir && g++ $fileName -o $fileNameWithoutExt && $dir$fileNameWithoutExt",
		"objective-c": "cd $dir && gcc -framework Cocoa $fileName -o $fileNameWithoutExt && $dir$fileNameWithoutExt",
		"php": "php",
		// "python": "python -u",
		"python": "python3",
		"perl": "perl",
		"perl6": "perl6",
		"ruby": "ruby",
		"go": "go run",
		"lua": "lua",
		"groovy": "groovy",
		"powershell": "powershell -ExecutionPolicy ByPass -File",
		"bat": "cmd /c",
		"shellscript": "bash",
		"fsharp": "fsi",
		"csharp": "scriptcs",
		"vbscript": "cscript //Nologo",
		"typescript": "ts-node",
		"coffeescript": "coffee",
		"scala": "scala",
		"swift": "swift",
		"julia": "julia",
		"crystal": "crystal",
		"ocaml": "ocaml",
		"r": "Rscript",
		"applescript": "osascript",
		"clojure": "lein exec",
		"haxe": "haxe --cwd $dirWithoutTrailingSlash --run $fileNameWithoutExt",
		"rust": "cd $dir && rustc $fileName && $dir$fileNameWithoutExt",
		"racket": "racket",
		"scheme": "csi -script",
		"ahk": "autohotkey",
		"autoit": "autoit3",
		"dart": "dart",
		"pascal": "cd $dir && fpc $fileName && $dir$fileNameWithoutExt",
		"d": "cd $dir && dmd $fileName && $dir$fileNameWithoutExt",
		"haskell": "runhaskell",
		"nim": "nim compile --verbosity:0 --hints:off --run",
		"lisp": "sbcl --script",
		"kit": "kitc --run",
		"v": "v run",
		"sass": "sass --style expanded",
		"scss": "scss --style expanded",
		"less": "cd $dir && lessc $fileName $fileNameWithoutExt.css"
	},
	"window.zoomLevel": 0,
	"editor.codeActionsOnSave": null,
	"python.autoComplete.addBrackets": true,
	"python.analysis.completeFunctionParens": true,
	"workbench.editor.enablePreview": false,
	"editor.fontSize": 13,


	// "files.associations": {},		// 文件关联
	// "editor.codeActionsOnSave": null,	// 代码操作保存编辑器
}
  • 0
    点赞
  • 7
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

Tian丶Yuting

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值