Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vscode 配置 #55

Open
ChelesteWang opened this issue Apr 15, 2022 · 0 comments
Open

vscode 配置 #55

ChelesteWang opened this issue Apr 15, 2022 · 0 comments

Comments

@ChelesteWang
Copy link
Owner

ChelesteWang commented Apr 15, 2022

{
  // 文件:文件自动保存,只要暂停输入
  "files.autoSave": "afterDelay",
  // 文件:文件保存机制:暂停输入3000毫秒即保存
  "files.autoSaveDelay": 3000,
  // 编辑器:这个属性是用来设置建议值的,就是我们在输入co时,编辑器提示我们const这个功能。推荐设置为first——即每次默认选中推荐值第一个,比如你输入co,推荐值为const和constant(按顺序),那么就会选择const。
  // 当然,也推荐设置为recentlyUsedByPrefix,即上次你选择或者输入过什么,这次就默认选中什么,比如你输入co,推荐值为const和constant(按顺序),上次你选择了constant,这次就还是默认选中cosntant
  "editor.suggestSelection": "recentlyUsedByPrefix",
  // 编辑器:保存即格式化
  "editor.formatOnSave": true,
  // 编辑器:设置默认格式化工具 有了这个就不用每个类型的文件都设置一个格式化工具,大部分用prettier,只有特殊情况需要单独设置
  "editor.defaultFormatter": "esbenp.prettier-vscode",
  // 编辑器:设置编辑器字体16号
  "editor.fontSize": 16,
  // 编辑器:保存时候的动作
  "editor.codeActionsOnSave": {
    // 保存的时候执行一次eslint校验
    "source.fixAll.eslint": true,
    // 保存的时候调整import顺序,按引入包字母顺序
    "source.organizeImports": true
  }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant