美文网首页
VSCODE配置 同步更新

VSCODE配置 同步更新

作者: LeungJhowe | 来源:发表于2018-07-06 23:08 被阅读0次

2020/4/18

{
  //-----window begin-----
  "window.menuBarVisibility": "toggle", // 菜单栏,default-默认;toggle关闭了通过ALT切换
  "window.zoomLevel": 0, // 调整窗口的缩放级别
  "breadcrumbs.enabled": true,
  //-----window end-----
  //-----workbench begin-----
  "workbench.iconTheme": "vscode-icons",
  "workbench.editor.enablePreview": false, //打开文件不覆盖
  "workbench.colorTheme": "Darcula Theme from IntelliJ", //指定工作台中使用的颜色主题
  "workbench.startupEditor": "newUntitledFile", // 编辑器初始界面
  "workbench.statusBar.feedback.visible": true, // 工作台状态栏是否可见
  "workbench.statusBar.visible": true, // 在资源管理器拖拽文件是否进行用户提醒
  "workbench.activityBar.visible": true,
  //-----workbench end-----
  //-----editor begin-----
  "editor.fontFamily": "Monaco",
  "editor.tabSize": 2, //制表符符号eslint,tab缩进
  "editor.fontSize": 16, // 默认编辑器字号
  // "editor.lineHeight": 24, //设置文字行高
  "editor.wordWrap": "on", //是否自动换行 
  "editor.lineNumbers": "on", //开启行数提示
  "editor.detectIndentation": false, // vscode默认启用了根据文件类型自动设置tabsize的选项
  "editor.renderWhitespace": "all", // 控制编辑器在空白字符上显示符号的方式
  "editor.formatOnPaste": true, // 自动格式化粘贴的代码
  // "editor.multiCursorModifier": "ctrlCmd", // 添加多个光标时候需要的快捷键,默认altCmd
  "editor.renderControlCharacters": false, // 自定义代码片段显示的位置
  "editor.quickSuggestions": { //开启自动显示建议
    "other": true,
    "comments": true,
    "strings": true
  },
  "editor.formatOnSave": true, // 每次保存自动格式化
  "editor.codeActionsOnSave": { //保存时,使用对应lint格式化
    // For ESLint
    "source.fixAll.eslint": true,
    // For TSLint
    "source.fixAll.tslint": true,
    // For Stylelint
    "source.fixAll.stylelint": true
  },
  "editor.minimap.enabled": false, //关闭快速预览
  "editor.snippetSuggestions": "top",
  //-----editor end-----
  //-----eslint begin-----
  // "eslint.autoFixOnSave": true, //让prettier使用eslint的代码格式进行校验
  "eslint.validate": [ //开启对.vue文件中错误的检查
    "javascript",
    "javascriptreact",
    "html",
    "vue"
  ],
  "eslint.format.enable": true,
  //-----eslint end-----
  //-----vetur begin-----
  "vetur.format.defaultFormatter.html": "js-beautify-html", //格式化.vue中html
  "vetur.format.defaultFormatter.js": "vscode-typescript", //让vue中的js按编辑器自带的ts格式进行格式化
  "vetur.format.defaultFormatterOptions": {
    "js-beautify-html": {
      // "wrap_attributes": "force-aligned" //属性强制折行对齐
      "wrap_attributes": "auto"
    }
  },
  "vetur.validation.template": false,
  //-----vetur end-----
  //-----terminal begin-----
  "terminal.integrated.fontSize": 16,
  "terminal.integrated.shell.windows": "C:\\Program Files\\Git\\bin\\bash.exe",
  "terminal.integrated.cursorBlinking": true,
  "terminal.integrated.rendererType": "dom",
  "terminal.integrated.cursorStyle": "line",
  //-----terminal end-----
  //-----vetur prettier begin-----
  "prettier.semi": true, //去掉代码结尾的分号
  "prettier.singleQuote": true, //使用单引号替代双引号
  //-----vetur prettier end-----
  // -----plugin begin-----
  "auto-close-tag.SublimeText3Mode": true,
  "sync.gist": "938b00a596b6a0fae6b89a6a0a38d991", // sync setting 同步配置
  //-----fileheader begin-----
  "fileheader.author": "Jhowe", // 文件最后修改者
  "fileheader.file_suffix_mapping": {
    ".vue": "Vue",
    ".js": "JavaScript",
    ".less": "Scss"
  },
  "fileheader.body": true,
  "fileheader.open": true,
  "fileheader.save": false,
  "fileheader.dateformat": "YYYY-MM-DD HH:mm:ss",
  "fileheader.ignore": [
    "*.txt",
    "test.py",
    "test"
  ],
  //-----fileheader end-----
  //-----plugin end-----
  //-----explorer begin-----
  "explorer.confirmDelete": true, // 在资源管理器删除内容时候是否进行用户提醒
  "explorer.confirmDragAndDrop": true, // 控制在资源管理器内拖放移动文件或文件夹时是否进行确认
  //-----explorer end-----
  //-----other begin-----
  "search.followSymlinks": false, //关闭rg.exe进程
  "liveServer.settings.donotShowInfoMsg": true, //关闭liveserver提示
  "files.autoSave": "off", //打开自动保存
  "source.fixAll.eslint": true,
  "javascript.format.insertSpaceBeforeFunctionParenthesis": true, //让函数(名)和后面的括号之间加个空格
  "git.autofetch": true,
  "dart.flutterSdkPath": "D:\\code\\Web\\flutter",
  "problems.decorations.enabled": false,
  "emmet.triggerExpansionOnTab": true, // 启用后,按下 TAB 键,将展开 Emmet 缩写。
  //-----other end-----
}

相关文章

网友评论

      本文标题:VSCODE配置 同步更新

      本文链接:https://www.haomeiwen.com/subject/stliuftx.html