我使用 VS Code 作为编辑器。我们有一个.editorconfig
其中包含格式配置的文件。我们都在编辑器中使用扩展 EditorConfig 来格式化 HTML 和 CSS 常规内容。我已经从这里安装了 VS Code 的扩展 EditorConfig:https://github.com/editorconfig/editorconfig-vscode https://github.com/editorconfig/editorconfig-vscode
我们的 .editorconfig 文件如下所示:
# This is the top-most .editorconfig file (do not search in parent directories)
root = true
### All files
[*]
# Force charset utf-8
charset = utf-8
# Indentation
indent_style = tab
indent_size = 4
# line breaks and whitespace
insert_final_newline = true
trim_trailing_whitespace = true
# end_of_line = lf
### Frontend files
[*.{css,scss,less,js,json,ts,sass,php,html,hbs,mustache,phtml,html.twig}]
### Markdown
[*.md]
indent_style = space
indent_size = 4
trim_trailing_whitespace = false
### YAML
[*.yml]
indent_style = space
indent_size = 2
### Specific files
[{package,bower}.json]
indent_style = space
indent_size = 2
我找不到任何键盘快捷键、设置或其他。如何让我的扩展执行以下操作.editorconfig
file?