十八比特 十八比特
⚡ 18bit DNS (opens new window)
🏠 主页
  • 🌐 网站
  • 📦 资源
  • 📝 教程
  • 📐 制表符
  • 🗃️ 分类
  • 🏷️ 标签
  • 🗄️ 归档
📃 文章日志
ℹ️ 关于

十八比特

风带来故事的种子,时间使之发芽
⚡ 18bit DNS (opens new window)
🏠 主页
  • 🌐 网站
  • 📦 资源
  • 📝 教程
  • 📐 制表符
  • 🗃️ 分类
  • 🏷️ 标签
  • 🗄️ 归档
📃 文章日志
ℹ️ 关于
  • VSCode

    • VSCode配置文件配置项
      • 开启原生彩色括号
      • Python扩展
      • Vetur扩展
      • markdownlint扩展
    • VSCode生成头部注释
  • Windows修改

  • 实用技巧
  • VSCode
秋澪冬安
2021-12-22
目录

VSCode配置文件配置项

摘要

记录VSCode配置文件的一些零散的配置项

# 开启原生彩色括号

"editor.bracketPairColorization.enabled": true,
"editor.guides.bracketPairs": "active",

# Python扩展

# 代码格式化工具

修改格式化工具的每行最大字符个数

// yapf
"python.formatting.provider": "yapf",
"python.formatting.yapfArgs": [
    "--style",
    "{column_limit: 200}"
],
// autopep8
"python.formatting.provider": "autopep8",
"python.formatting.autopep8Args": [
    "--max-line-length=200"
],
// black
"python.formatting.provider": "black",
"python.formatting.blackArgs": [
    "--line-length",
    "200"
],

# 代码静态检查工具

// 默认使用pylint对Python文件进行静态检查
"python.linting.pylintEnabled": true,
// 默认对Python文件进行静态检查
"python.linting.enabled": true,
// 默认在Python文件保存时进行静态检查
"python.linting.lintOnSave": true,
// 自定义pylint规则选项
"python.linting.pylintArgs": [
    "--disable=C0301,W0702,C0103,C0114,C0116,W0703"
],

# Vetur扩展

关闭can't find package.json in /xxxx/xxxxxx.警告

"vetur.ignoreProjectWarning": true,

# markdownlint扩展

自定义配置

"markdownlint.config": {
    "MD041": false
}
#VSCode
上次编辑: 2024/08/30, 16:21:31

VSCode生成头部注释→

最近更新
01
SSH跳板机访问内网服务
06-16
02
GPG 导出导入命令
06-16
03
从零开始的 All In One
06-14
更多文章>
Theme by Vdoing | Copyright © 2020-2025 十八比特 | 蜀ICP备2022002410号-1
  • 跟随系统
  • 浅色模式
  • 深色模式
  • 阅读模式