简体   繁体   English

如何在IntelliJ IDEA 13中按项目配置编辑器首选项?

[英]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.

相关问题 如何在 IntelliJ IDEA 中配置新的 Maven 项目? - How to configure new Maven project in IntelliJ IDEA? 如何在Spring Boot项目的Intellij IDEA上正确配置jRebel: - How to properly configure jRebel on Intellij IDEA on a spring boot project: 如何在 IntelliJ IDEA 14 中为当前项目工作配置注释处理? - How to configure annotations processing in IntelliJ IDEA 14 for current project work? 如何使用CPLEX配置IntelliJ Idea - How to configure IntelliJ Idea with CPLEX 如何在智能创意13中正常关闭码头? - How to gracefully shutdown jetty in intelliJ idea 13? 如何创建游戏! 使用JetBrains IntelliJ Idea 13的框架JAVA应用程序? 我只找到了Scala项目 - How to create Play! Framework JAVA application with JetBrains IntelliJ Idea 13? I only find the Scala project 如何在部署之前在IntelliJ IDEA 13中设置Tomcat服务器配置以构建Gradle项目? - How to setup Tomcat Server configuration in IntelliJ IDEA 13 to build Gradle project before deployment? 无法在 IntelliJ IDEA 13 社区版中创建 java 项目 - Can't create java project in IntelliJ IDEA 13 Community Edition 如何使用 Intellij Idea 运行 java 编辑器文件 - How to run a java editor file with Intellij Idea 如何配置 Intellij Idea javadoc 模板? - How configure Intellij Idea javadoc templates?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM