我使用VS代码编辑多语言(主要是Ruby,PHP和Javascript)的项目,并且对于每种语言我们都有不同的缩进模型(空格/制表符和宽度)。看起来像VS Code支持这个功能,因为它允许editor.insertSpaces
和editor.tabSize
被设置为"auto"
,这是一种每种语言的定义。如何更改将“editor.insertSpaces”设置为“自动”的每种语言配置
虽然editor.tabSize
看起来要做什么我想要的,editor.insertSpaces
总是在"auto"
模式下插入空格。
我试图找到哪里可以编辑每种语言的配置,但没有找到这样的设置。我还查看了resources/app/client/vs/languages
下的语言目录,但未能找到指定这些功能的内容。
任何想法如何自定义每种语言的设置?
我想'vscode '开始支持这个用例的插件,特别是'editorconfig'。 – sarbbottam
请将此建议作为我们用户语音页面上的一项功能:http://visualstudio.uservoice.com/forums/293070-visual-studio-code –
我已打开[uservoice ticket#7853865](http:// visualstudio。 uservoice.com/forums/293070-visual-studio-code/suggestions/7853865-allow-to-configure-the-auto-behavior-of-features) – Guss