在WebStorm 2016中更新当前缩进空间大小 [英] Update current indentation spaces size in WebStorm 2016

查看:301
本文介绍了在WebStorm 2016中更新当前缩进空间大小的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要在自动创建的Ionic项目中从2个空格缩进样式切换到4个空格。

I need to switch from a 2 spaces indentation style to a 4 spaces one within an automatically created Ionic project.

我在Mac OS X上运行WebStorm 2016.1。

I'm running WebStorm 2016.1 on Mac OS X.

我已经尝试改变:

WebStorm |偏好|代码风格| JavaScript |制表符和缩进

WebStorm | Preferences | Code Style | JavaScript | Tabs and indents

并使用缩进大小,制表符大小,使用制表符等...但是没有任何更改似乎对现有(和新的)JavaScript文件有效。

and play with indent size, tab size, use tab character etc... but no change seems to have effect on existing (and new) JavaScript files.

关于如何实现它的任何想法?可能会有一些常规设置阻止此更改生效吗?

Any idea about how to achieve it? Might some general setting prevent this changes to take effect?

推荐答案

你有 .editorconfig 项目中的文件?来自那里的设置将覆盖您的代码样式设置(这是预期的行为 - 这是EditorConfig插件的整体性质/目的)。

Do you have .editorconfig file in your project? Settings from there will overwrite your Code Style settings (and that is expected behaviour -- that's the whole nature/purpose of EditorConfig plugin).

PS
IDE应该通知您这种行为(对我而言)。例如:

P.S. IDE should notify you about such behaviour (does for me). For example:

这篇关于在WebStorm 2016中更新当前缩进空间大小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆