vscode 的使用笔记

99封情书 提交于 2019-11-28 17:45:47

1.使用vscode 的终端命令

ctrl +  打开 vs 的终端

 

这是使用windows 自带的shell终端,

使用git.bash的shell  在设置里面,找到 terminal.integrated.commandsToSkipShell 配置成自己的 git bash

编辑setting.json,粘贴代码段:

{
    "terminal.integrated.shell.windows": "C:\\Program Files\\Git\\bin\\bash.exe",
    "window.zoomLevel": 1,
    "workbench.colorTheme": "Visual Studio Dark",
    "[json]": {}
}

 

 

ctrl + shift + p 查询:

选择第三个:

 

然后,重新ctrl ~ 就会重新打开shell 

 

关于快捷键的查询和设置:

 2.vue模板的代码片段

"Print to console": {
        "prefix": "vue",
        "body": [
            "<template>",
            "  <div>\n",
            "  </div>",
            "</template>\n",
            "<script>",
            "export default {",
            "    data () {",
            "        return {\n",
            "        }",
            "    },",
            "    components: {\n",
            "    }",
            "}",
            "</script>\n",
            "<style>\n",
            "</style>",
            "$2"
        ],
        "description": "Log print to vue-template"
    },

3.增加函数的注释

插件:Document This, 快捷键  ctrl + alt + d

如下显示:

 

更新npm 包的插件:Npm Dependency

 

摘录笔记:

https://juejin.im/post/5a08d1d6f265da430f31950e

 

https://segmentfault.com/a/1190000012811886

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!