当前位置: 首页 > news >正文

vc code

vc code 设置:

{
  "editor.fontSize": 14,
  "files.exclude": {
    "**/.git": true,
    "**/.svn": true,
    "**/.hg": true,
    "**/.vscode": true,
    "**/.project": true,
    "**/node_modules": true,
    "**/.DS_Store": true
  },
  "workbench.iconTheme": "vscode-icons",
  "editor.tabSize": 2,
  "search.exclude": {
    "**/node_modules": true,
    "**/bower_components": true,
    "**/dist": true
  },
  "extensions.autoUpdate": true,
  "editor.renderWhitespace": "none",
  "editor.cursorBlinking": "smooth",
  "terminal.integrated.cursorStyle": "line",
  "editor.quickSuggestions": {
    "other": true,
    "comments": false,
    "strings": true
  },
  "gulp.autoDetect": "off",
  "jake.autoDetect": "off",
  "grunt.autoDetect": "off",
  "terminal.integrated.cursorBlinking": true,
  "extensions.ignoreRecommendations": true,
  "php.suggest.basic": false,
  "php.validate.enable": false,
  "scss.validate": false,
  "less.validate": false,
  "window.zoomLevel": 0,
  "px-to-rem.px-per-rem": 20,
  "editor.minimap.enabled": true,
  "beautify.language": {
    "js": {
      "type": [
        "javascript",
        "json"
      ],
      "filename": [
        ".jshintrc",
        ".jsbeautify"
      ]
    },
    "css": [
      "css",
      "scss"
    ],
    "html": [
      "htm",
      "html",
      "vue"
    ]
  },
  "emmet.includeLanguages": {
    "vue-html": "html",
    "vue": "html",
    "wxml": "html"
  },
  "editor.renderControlCharacters": false,
  "workbench.panel.location": "bottom",
  "beautify.config": {
    "indent_size": 2
  },
  "explorer.confirmDelete": false,
  "workbench.activityBar.visible": true,
  "workbench.statusBar.visible": true,
  "workbench.sideBar.location": "right",
  "window.menuBarVisibility": "toggle",
  "files.trimTrailingWhitespace": true,
  "eslint.validate": [
    "javascript",
    "javascriptreact",
    "html",
    "shtml"
  ],
  "eslint.options": {
    "configFile": "D:/code/.eslintrc.json",
    "plugins": ["html", "backbone", "requirejs"]
  },
  "markdown.extension.toc.orderedList": true,
  "files.associations": {
    "*.jsp": "jsp",
    "*.wxss": "css",
    "*.wxml": "wxml",
    "*.cjson": "jsonc",
    "*.wxs": "javascript"
  },
  "gitlens.advanced.messages": {
    "suppressCommitHasNoPreviousCommitWarning": false,
    "suppressCommitNotFoundWarning": false,
    "suppressFileNotUnderSourceControlWarning": true,
    "suppressGitVersionWarning": false,
    "suppressLineUncommittedWarning": false,
    "suppressNoRepositoryWarning": true,
    "suppressResultsExplorerNotice": false,
    "suppressShowKeyBindingsNotice": true,
    "suppressUpdateNotice": false,
    "suppressWelcomeNotice": true
  },
  "svn.multipleFolders.ignore": [
    "**/.git/**",
    "**/.hg/**",
    "**/vendor/**",
    "**/node_modules/**",
    "**/.vscode/**"
  ],
  "vetur.format.defaultFormatter.html": "js-beautify-html",
  "vetur.format.defaultFormatter.js": "vscode-typescript",
  "gitlens.keymap": "chorded",
  "terminal.integrated.confirmOnExit": true,
  "terminal.integrated.shell.windows": "C:\\Program Files (x86)\\Git\\bin\\bash.exe",
  "java.home": "C:\\Program Files\\Java\\jdk1.8.0_73",
  "java.errors.incompleteClasspath.severity": "ignore",
  "diffEditor.ignoreTrimWhitespace": true,
  "html.validate.styles": false,
  "markdown.extension.print.absoluteImgPath": false,
  "previewjsdoc.conf": {
    "plugins": ["plugins/markdown"],
    "recurseDepth": 10,
    "source": {
      "includePattern": ".+\\.js(doc|x)?$",
      "include": ["public"],
      "excludePattern": "(^|\\/|\\\\)_"
    },
    "sourceType": "module",
    "tags": {
      "allowUnknownTags": true,
      "dictionaries": [
        "jsdoc",
        "closure"
      ]
    },
    "templates": {
      "cleverLinks": false,
      "monospaceLinks": false
    },
    "opts": {
      "encoding": "utf8",
      "recurse": true,
      "destination": "D:\\code\\jsdoc\\"
    },
    "markdown": {
      "tags": ["MK"]
    }
  },
  "previewjsdoc.output": "D:\\code\\jsdoc\\",
  "previewjsdoc.port": 7010,
  "explorer.confirmDragAndDrop": false,
  "markdown.extension.preview.autoShowPreviewToSide": true,
  "json.trace.server": "messages",
  "minapp-vscode.disableAutoConfig": true,
  "npm.enableScriptExplorer": true,
  "breadcrumbs.enabled": true,
  "javascript.updateImportsOnFileMove.enabled": "always",
  "git.confirmSync": false,
  "git.autofetch": true,
  "html.format.wrapAttributes": "aligned-multiple",
  "git.enableSmartCommit": true,
  "terminal.integrated.rendererType": "dom",
  "workbench.colorTheme": "Solarized Light"
}
复制代码

Eslint 配置:

"./.eslintrc.json"

{
  "env": {
    "browser": true,
    "commonjs": true,
    "jquery": true,
    "es6": true,
    "node": true,
    "amd": true
  },
  "parserOptions": {
    "ecmaVersion": 6,
    "ecmaFeatures": {
      "experimentalObjectRestSpread": true,
      "jsx": true
    },
    "sourceType": "module"
  },
  "globals": {
    "common": true,
    "App": true,
    "wx": false,
    "$": true,
    "Page":false,
    "global":true,
    "Component":true
  },
  "plugins": [
    "vuefix",
    "html",
    "backbone",
    "requirejs"
  ],
  "extends": ["plugin:backbone/recommended", "plugin:requirejs/recommended"],
  "rules": {
    "vuefix/vuefix": [2, {
      "auto": true
    }],
    "no-const-assign": "warn",
    "no-this-before-super": "warn",
    "no-undef": "warn",
    "no-self-assign": 2,
    "no-self-compare": 2,
    "constructor-super": "warn",
    "valid-typeof": "warn",
    "backbone/collection-model": 1,
    "backbone/defaults-on-top": 1,
    "backbone/model-defaults": 1,
    "backbone/no-constructor": 1,
    "backbone/no-native-jquery": 1,
    "no-use-before-define": 0,
    "global-require": 1
  },
  "settings": {
    "html/html-extensions": [".html", ".shtml",".wxml"]
  }
}
复制代码

使用了一些插件,可能需要下载.

Markdown 样式修正:
"./md.css"

html,body{
  width:800px;
  margin: 0 auto;
  color: #4d4e53;
  background: #fff;
}
body{
  padding-bottom:50px;
  padding-top:30px;
}
h1,h2{
  text-align: center
}

h1,h2{
  font-size: 24px;
}
h3{
  font-size: 20px;
}
h4{
  font-size: 16px;
}
hr{
  border-bottom: 1px solid #d9d9d9;
  height: 0;
}

code{
  background:#d9d9d9;
  border-radius: 2px;
  color: brown;
}

.hljs code > div{
  background:#d9d9d9;
  border-radius: 8px;
}

svg{
  margin: 0 auto;
  display: block;
}

g{
  text-align: center;
}
table{
  border: 1px solid black;
}

table>thead>tr>th{
  border-right: 1px solid rgb(207, 207, 207);
}

table>thead>tr>th:nth-last-child(1){
  border-right:none;
}

table>tbody>tr>td{
  border-right: 1px solid rgb(207, 207, 207);
}

table>tbody>tr>td:nth-last-child(1){
  border-right: none;
}

table > tbody > tr + tr > td {
  border-top: 1px solid rgb(207, 207, 207);
}
blockquote{
  background: blanchedalmond;
}
.hljs-comment, .hljs-quote {
  color: #017402;
}
复制代码

主要是长期积累的VCcode 配置以及VCcode.常用前端插件配置.

VCcode常用插件有:

  1. Beautify (代码格式化插件)
  2. Debugger for Chrome
  3. Document This (JSDos插件)
  4. ESLint (Js代码监控)
  5. GitLens (git插件,比VCcode自带的多了很多功能)
  6. HTML5 Snippets (完整的HTMl标签提示)
  7. Import Cost (自动计算引用包的大小)
  8. JavaScript Snippet Pack (JS提示包)
  9. Markdown All in One (markdown 多合一功能扫插件)
  10. Markdown Preview Mermaid Support (markdown流程图插件)
  11. minapp (wx小程序插件)
  12. npm support (npm 功能增强)
  13. Output Colorizer (终端文本框着色)
  14. Path Intellisense (路径引入自动补全)
  15. SVN (vccode中的SVN插件)
  16. vscode-icons (资源管理器文件图标美化)

如 git svn 等.. 必须先安装源程序.其在VScode中,仅仅是引入一些简化或者视图,命令和快捷键等...便利操作,与VScode兼容.并不是直接下载了这些软件.

相关文章:

  • FLIP-24+-+SQL+Client
  • 【转】【WPF】WPF - MVVM - 如何将ComboBox的Selectchange事件binding到ViewModel
  • linux内核中链表代码分析---list.h头文件分析(二)【转】
  • 时间不对导致vSAN服务无法启动
  • C# WinForm 技巧十: winfrom 全屏自适应屏幕分辨率
  • Java 软件高级工程师笔试题
  • Flask 的馈赠
  • redis的GEO实战
  • 苹果cms v10安装教程
  • Hadoop迁移MaxCompute神器之DataX-On-Hadoop使用指南
  • CentOS7源码包编译安装php7.2完整版
  • PXE安装与配置
  • 【呆鸟译Py】2018年数据科学家报告
  • jython笔记
  • mpvue 临时关闭eslint
  • 《剑指offer》分解让复杂问题更简单
  • 【刷算法】求1+2+3+...+n
  • ECS应用管理最佳实践
  • E-HPC支持多队列管理和自动伸缩
  • Javascript弹出层-初探
  • JavaScript的使用你知道几种?(上)
  • JAVA多线程机制解析-volatilesynchronized
  • js对象的深浅拷贝
  • js算法-归并排序(merge_sort)
  • Making An Indicator With Pure CSS
  • MyEclipse 8.0 GA 搭建 Struts2 + Spring2 + Hibernate3 (测试)
  • Object.assign方法不能实现深复制
  • vue脚手架vue-cli
  • 测试如何在敏捷团队中工作?
  • 从@property说起(二)当我们写下@property (nonatomic, weak) id obj时,我们究竟写了什么...
  • 前端_面试
  • 前端相关框架总和
  • 前端知识点整理(待续)
  • 悄悄地说一个bug
  • 如何利用MongoDB打造TOP榜小程序
  • 小程序、APP Store 需要的 SSL 证书是个什么东西?
  • 用Canvas画一棵二叉树
  • 字符串匹配基础上
  • Hibernate主键生成策略及选择
  • 阿里云API、SDK和CLI应用实践方案
  • !!java web学习笔记(一到五)
  • #include
  • #QT(一种朴素的计算器实现方法)
  • $con= MySQL有关填空题_2015年计算机二级考试《MySQL》提高练习题(10)
  • (附源码)springboot 智能停车场系统 毕业设计065415
  • (教学思路 C#之类三)方法参数类型(ref、out、parmas)
  • (七)Knockout 创建自定义绑定
  • (三) diretfbrc详解
  • (转)Android中使用ormlite实现持久化(一)--HelloOrmLite
  • .NET 4.0网络开发入门之旅-- 我在“网” 中央(下)
  • .net core webapi Startup 注入ConfigurePrimaryHttpMessageHandler
  • .NET WebClient 类下载部分文件会错误?可能是解压缩的锅
  • .Net程序猿乐Android发展---(10)框架布局FrameLayout
  • .Net转Java自学之路—基础巩固篇十三(集合)
  • /bin/rm: 参数列表过长"的解决办法