visual studio code (简称 vs code / vsc) 是一款免费开源的现代化轻量级代码编辑器,支持几乎所有主流的开发语言的语法高亮、智能代码补全、自定义热键、括号匹配、代码片段、代码对比 diff、git 等特性,支持插件扩展,并针对网页开发和云端应用开发做了优化。软件跨平台支持 win、mac 以及 linux。
vscode 官网:
https://code.visualstudio.com/
打开浏览器输入
htt4个字的歌名ps://code.visualstudio.com/(进入到官网),点击下载,可以根据自己的操作系统进行下载。
下载地址:
https://vscode.cdn.azure.cn/stable/e5a624b788d92b8d34d1392e4c4d9789406efe8f/vscodeurtup-x64-1.51.1.exe
下图为确认安装过程,安装成功后启动vscode:
chine (simplified) language pack for visual studio code(配置显示语言“zh-cn”)、
vetur、stylelint、sass、prettier – code formatter、gitlens–git supercharged、eslint、editorconfig for vs c小学一年级家长会班主任发言稿ode、debugger for chrome、debugger for java、code runner、auto rename tag
》》重启之后
打开文件->首选项->设置,就会进入到 ttings.json 文件中,以下是自定义配置:
{ "git.confirmsync": fal, "git.autofetch": true, "git.checkouttype": "remote", "git.enablesmartcommit": true, "files.autosave": "onfocuschange", "files.associations": { "*.vue": "vue", "*.wpy": "vue", "*.wxml": "wxml", "*.wxss": "css", "*.js": "javascript", "*.html": "html", "*.cjson": "jsonc", "*.wxs": "javascript" }, "emmet.syntaxprofiles": { "vue-html": 眷恋千年"html", "vue": "html" }, "emmet.includelanguages": { "wxml": "html" }, "eslint.autofixonsave": true, "eslint.validate": [ "javascript", "javascriptreact", { "language": "html", "autofix": true }, { "language": "vue", "autofix": true }, { "autofix": true, "language": "javascript" }, { "autofix": true, "language": "javascriptreact" }, { "autofix": true, "language": "typescript" }, { "autofix": true, "language": "typescript词诠react" } ], "terminal.integrated奖学金.shell.windows": "c:\windows\system32\cmd.exe", "window.zoomlevel": 1, "explorer.confirmdelete": fal, "vetur.experimental.templateinterpolationrvice": fal, "editor.tabsize": 4, "editor.tabcompletion": "on", "editor.codeactionsonsave": { "source.fixall": true }}
{ // place your snippets for vue here. each snippet is defined under a snippet name and has a prefix, body and // description. the prefix is what is ud to trigger the snippet and the body will be expanded and inrted. possible variables are: // $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. placeholders with the // same ids are connected. // example: "print to console": { "prefix": "log", "body": [ "console.log('$1')", "$2" ], "description": "log output to console" }, "print to vue template": { "prefix": "vue", "body": [ "<template>", " <div class='page-view'>", " 1", " </div>", "</template>", " ", "<script lang='ts'>", "import vue from 'vue'", "export default vue.extend({", " data() {", " return{}", " },", " methods:{}", "});", "</script>", " ", "<style lang='scss' scoped>", ".page-view {", " min-height: 100%;", "}", "</style>" ], "description": "log output to vue template" }}
本文发布于:2023-04-09 07:27:28,感谢您对本站的认可!
本文链接:https://www.wtabcd.cn/fanwen/zuowen/2bb342ba7b07cb50d3dc19a192d75419.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文word下载地址:代码编辑器哪个好用(电脑程序编程入门代码).doc
本文 PDF 下载地址:代码编辑器哪个好用(电脑程序编程入门代码).pdf
留言与评论(共有 0 条评论) |