VSCode配置Setting.json

同步侠
• 阅读 2003


plugin

# GitHub Dark
code --install-extension GitHub.github-vscode-theme;

# vscode-icons
code --install-extension vscode-icons-team.vscode-icons;

# prettier
code --install-extension esbenp.prettier-vscode;

# python
code --install-extension ms-python.python;

# c/c++
code --install-extension ms-vscode.cpptools;

# java
code --install-extension vscjava.vscode-java-pack;


setting


{
  "workbench.startupEditor": "none",
  "workbench.colorTheme": "GitHub Dark",
  "workbench.iconTheme": "vscode-icons",
  "editor.fontLigatures": false,

  "editor.fontSize": 22,
  "editor.fontFamily": "'DejaVu Sans Mono'",
  "editor.fontWeight": "normal",
  "editor.wordWrap": "on",
  "extensions.ignoreRecommendations": true,
  "editor.cursorBlinking": "smooth", //使编辑器光标的闪烁平滑,有呼吸感
  "editor.cursorSmoothCaretAnimation": "on", //让光标移动、插入变得平滑
  "editor.formatOnType": true, //敲完一行代码自动格式化
  "editor.smoothScrolling": true, //使编辑器滚动变平滑
  "editor.defaultFormatter": "esbenp.prettier-vscode",

  /* 文件自动保存
   onFocusChange:当前文件失去焦点后自动保存.
   onWindowChange:需要当前 VScode 窗口失去焦点才会自动保存.
   afterDelay:与 files.autoSaveDelay 配置联动,也就是在间隔多少毫秒自动保存,默认「1000毫秒」,
   有个小细节,如果配置了保存格式化代码,这个配置下自动保存不会格式化代码. */
  "files.autoSave": "onWindowChange",
  "files.autoSaveDelay": 2000,
  // 配置 Tab 空格数
  "editor.tabSize": 2,
  // 保存自动格式化代码
  "editor.formatOnSave": true,
  // 粘贴自动格式化
  "editor.formatOnPaste": true,

  // 可以为不同语言的文件类型单独配置
  "[typescript]": {
    "editor.formatOnSave": false
  },
  "[markdown]": {
    "editor.formatOnSave": true
  },
  "[javascript]": {
    "editor.defaultFormatter": "esbenp.prettier-vscode"
  },
  "[jsonc]": {
    "editor.defaultFormatter": "esbenp.prettier-vscode"
  },
  "[python]": {
    "editor.defaultFormatter": "ms-python.python"
  },
  "[cpp]": {
    "editor.defaultFormatter": "ms-vscode.cpptools"
  },
  "[java]": {
    "editor.defaultFormatter": "redhat.java"
  },
  
  "redhat.telemetry.enabled": true,

  //关闭自动更新
  "update.mode": "none",

  "debug.internalConsoleOptions": "openOnSessionStart", //每次调试都打开调试控制台,方便调试
  "debug.showBreakpointsInOverviewRuler": true, //在滚动条标尺上显示断点的位置,便于查找断点的位置
  "window.dialogStyle": "custom", //使用更具有VSCode的UI风格的弹窗提示(更美观)
  "workbench.editor.wrapTabs": true, //编辑器标签页在空间不足时以多行显示

  "html.format.indentHandlebars": true, //在写包含形如{{xxx}}的标签的html文档时,也对标签进行缩进(更美观)

  "files.autoGuessEncoding": true, //让VScode自动猜测源代码文件的编码格式
  "files.watcherExclude": {
    //不索引一些不必要索引的大额占存文件夹以减少内存和CPU消耗
    "**/.git/objects/**": true,
    "**/.git/subtree-cache/**": true,
    "**/node_modules/**": true,
    "**/tmp/**": true,
    "**/bower_components/**": true,
    "**/dist/**": true
  },

  "terminal.integrated.fontSize": 20,
  "terminal.integrated.cursorBlinking": true,
  "terminal.integrated.fontFamily": "Consolas",
  "terminal.integrated.fontWeight": "normal",

  "explorer.confirmDelete": false, //终端光标闪烁
  "update.showReleaseNotes": false,
  "editor.fontVariations": false,
  "vsicons.dontShowNewVersionMessage": true,

  "cmake.cmakePath": "C:\\Soft\\MSYS2\\usr\\bin\\cmake.exe",
  "C_Cpp.default.compilerPath": "C:\\Soft\\mingw64\\x86_64-8.1.0-release-win32-seh-rt_v6-rev0\\mingw64\\bin\\g++.exe",

  "cmake.generator": "MinGW Makefiles",
  "debug.console.fontSize": 20,
  "debug.console.fontFamily": "Consolas",
  "cmake.configureOnOpen": true
}

点赞
收藏
评论区
推荐文章
blmius blmius
3年前
MySQL:[Err] 1292 - Incorrect datetime value: ‘0000-00-00 00:00:00‘ for column ‘CREATE_TIME‘ at row 1
文章目录问题用navicat导入数据时,报错:原因这是因为当前的MySQL不支持datetime为0的情况。解决修改sql\mode:sql\mode:SQLMode定义了MySQL应支持的SQL语法、数据校验等,这样可以更容易地在不同的环境中使用MySQL。全局s
可莉 可莉
3年前
18个常用 webpack插件,总会有适合你的!
!(https://oscimg.oschina.net/oscnet/71317da0c57a8e8cf5011c00e302a914609.jpg)来源| https://github.com/Michaellzg/myarticle/blob/master/webpack/Plugin何为插
Wesley13 Wesley13
3年前
VBox 启动虚拟机失败
在Vbox(5.0.8版本)启动Ubuntu的虚拟机时,遇到错误信息:NtCreateFile(\\Device\\VBoxDrvStub)failed:0xc000000034STATUS\_OBJECT\_NAME\_NOT\_FOUND(0retries) (rc101)Makesurethekern
Wesley13 Wesley13
3年前
FLV文件格式
1.        FLV文件对齐方式FLV文件以大端对齐方式存放多字节整型。如存放数字无符号16位的数字300(0x012C),那么在FLV文件中存放的顺序是:|0x01|0x2C|。如果是无符号32位数字300(0x0000012C),那么在FLV文件中的存放顺序是:|0x00|0x00|0x00|0x01|0x2C。2.  
Wesley13 Wesley13
3年前
mysql设置时区
mysql设置时区mysql\_query("SETtime\_zone'8:00'")ordie('时区设置失败,请联系管理员!');中国在东8区所以加8方法二:selectcount(user\_id)asdevice,CONVERT\_TZ(FROM\_UNIXTIME(reg\_time),'08:00','0
Stella981 Stella981
3年前
ELK学习笔记之配置logstash消费kafka多个topic并分别生成索引
0x00 filebeat配置多个topicfilebeat.prospectors:input_type:logencoding:GB2312fields_under_root:truefields:添加字段
Wesley13 Wesley13
3年前
PHP创建多级树型结构
<!lang:php<?php$areaarray(array('id'1,'pid'0,'name''中国'),array('id'5,'pid'0,'name''美国'),array('id'2,'pid'1,'name''吉林'),array('id'4,'pid'2,'n
Wesley13 Wesley13
3年前
Java日期时间API系列36
  十二时辰,古代劳动人民把一昼夜划分成十二个时段,每一个时段叫一个时辰。二十四小时和十二时辰对照表:时辰时间24时制子时深夜11:00凌晨01:0023:0001:00丑时上午01:00上午03:0001:0003:00寅时上午03:00上午0
Stella981 Stella981
3年前
JFinal使用笔记2
大部分步骤按cf官方的教程就可以了。遇到的问题如下:1、使用C3p0Plugin配置数据库连接,代码如下//配置C3p0数据库连接池插件//C3p0Pluginc3p0PluginnewC3p0Plugin(getProperty("jdbcUrl"),getProperty("user"),getP
Wesley13 Wesley13
3年前
MySQL部分从库上面因为大量的临时表tmp_table造成慢查询
背景描述Time:20190124T00:08:14.70572408:00User@Host:@Id:Schema:sentrymetaLast_errno:0Killed:0Query_time:0.315758Lock_
美凌格栋栋酱 美凌格栋栋酱
5个月前
Oracle 分组与拼接字符串同时使用
SELECTT.,ROWNUMIDFROM(SELECTT.EMPLID,T.NAME,T.BU,T.REALDEPART,T.FORMATDATE,SUM(T.S0)S0,MAX(UPDATETIME)CREATETIME,LISTAGG(TOCHAR(