您可以使用 EditorConfig (https://editorconfig.org/) 中的设置覆盖 IDE 代码样式设置。

要使用 EditorConfig 设置,必须安装并启用 EditorConfig 插件。要配置 EditorConfig 中的样式,请打开设置 (&shortcut:ShowSettings; ),导航到 编辑器 | 代码样式 ,然后选中 启用 EditorConfig 支持 复选框。

要将当前 IDE 代码样式设置导出到 .editconfig 文件,请点击 导出

EditorConfig settings