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/setting.json默认配置讨论 #30

Open
GGwujun opened this issue May 25, 2021 · 1 comment
Open

关于.vscode/setting.json默认配置讨论 #30

GGwujun opened this issue May 25, 2021 · 1 comment
Assignees
Labels
enhancement New feature or request feat good first issue Good for newcomers help wanted Extra attention is needed

Comments

@GGwujun
Copy link
Collaborator

GGwujun commented May 25, 2021

winex lint会生成.vscode/setting.json配置文件,内容如下:

{
  "editor.codeActionsOnSave": {
    "source.fixAll": true, // 控制是否应在文件保存时运行自动修复操作
    "source.fixAll.eslint": true // 启用保存时自动修复,默认只支持.js文件
  },
   //在保存时格式化文件。格式化程序必须可用,延迟后文件不能保存,并且编辑器不能关闭
  "editor.formatOnSave": true, 
  //控制在保存时设置格式是设置整个文件格式还是仅设置修改内容的格式。仅当 "#editor.formatOnSave#" 处于启用状态时适用。modifications: 格式修改(需要源代码管理)。
  "editor.formatOnSaveMode": "modifications",
  // 指定代码操作模式。可能的值为“所有”和“被改动的” ,all:修复文件中所有可能的问题。此选项可能需要一些时间
  "eslint.codeActionsOnSave.mode": "all",
  //在保存(onSave)或类型(onType)上运行linter
  "eslint.run": "onType",
  // 是否缩进Vue文件中<script>和<style>标记内的代码。有些人(例如Vue的创建者)不缩进以保存缩进级别,但这可能会破坏编辑器中的代码折叠。
  "prettier.vueIndentScriptAndStyle": false
}

@icemirror @frontHu @zhanyi233 @winex-fe 大家看下,默认的配置还需要加哪些,或者需要删除哪些?

@GGwujun GGwujun self-assigned this Jun 3, 2021
@GGwujun GGwujun added enhancement New feature or request feat good first issue Good for newcomers help wanted Extra attention is needed labels Jun 3, 2021
@github-actions
Copy link

github-actions bot commented Jun 3, 2021

Hello @GGwujun. We totally like your proposal/feedback, welcome to send us a Pull Request for it. Please be sure to fill in the default template in the Pull Request, provide changelog/documentation/test cases if needed and make sure CI passed, we will review it soon. We appreciate your effort in advance and looking forward to your contribution!
你好 @GGwujun,我们完全同意你的提议/反馈,欢迎直接在此仓库创建一个 Pull Request 来解决这个问题。请务必填写 Pull Request 内的预设模板,提供改动所需相应的 changelog、测试用例、文档等,并确保 CI 通过,我们会尽快进行 Review,提前感谢和期待您的贡献。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request feat good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant