[英]How to configure editor preferences by project in IntelliJ IDEA 13?
Currently I'm working in two project with different code style guidelines. 目前,我正在两个项目中使用不同的代码样式准则。 As far as I see the editor preferences are global in IntelliJ IDEA 13.1.14, for instance tabs vs. spaces. 据我所知,编辑器首选项在IntelliJ IDEA 13.1.14中是全局的,例如选项卡与空格。
So, is there any way where those settings can be defined by project and not globally? 那么,有什么方法可以通过项目而不是全局地定义那些设置?
You can create different styles for the different projects. 您可以为不同的项目创建不同的样式。 Select in the settings the "Project" profile and copy one of the different styles to the project style. 在设置中选择“项目”配置文件,然后将一种不同的样式复制到项目样式中。 (You have to click "Manage" in the code settings) This is the only way I know, it would be nice if it would be more convenient. (您必须在代码设置中单击“管理”),这是我知道的唯一方法,如果这样更方便,那就更好了。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.