English 中文(简体)
IntelliJ: 指定每个项目选项卡大小
原标题:IntelliJ: Specify per-project tab size

IntelliJ 中的制表符大小是否只用于一个文件, 或最多用于一个工程?

我所有代码都使用3的制表符大小; 然而, 我正与一个更喜欢4的制表符大小的作者合作执行一个项目。

最佳回答

打开 settings 对话框,通过导航到 File - & gt; settings . /code> 。在对话框左侧的 项目设置[您的项目] 下,导航到 Code Style -gt; agenda . size 可配置在该窗板上,而您提供的值仅适用于名为 ourproject 的项目。

问题回答

无法找到 项目特定设置 的人

按下 Command+, 将给予您所需的优先

您可以为工程设置一个全局格式,并设置“格式代码”,以符合每个首选样式。

问题在于您的版本控制系统。 如果您的石油可以在 3 到 4 个空格之间往返, 您将永远看不到有意义的变化 。

最好满足一个标准 并坚持它。

私人项目的想法我不清楚。 归结到您的版本控制系统。 如果可以检查代码的进出, 这样标签大小不会影响承诺, 那么我要说您可以独立。 如果您通过添加一个已编译的第三党JAR, 共享共同代码, 那么我要说您可以独立 。

这不是你问题的准确答案, 但IntelliJ目前( 4/ 2013) 只能“ ” 处理每个语言的标签设置, 说实话, 这是完全可以的, 因为语言和文件类型通常都“ 相同 ” 。 因此您可以解决您的问题 。

您可以在文件 - & gt; 设置 - & gt; 项目设置 - & gt; 代码样式 - & gt; & gt; & YOUR 局域名中找到设置 。





相关问题
IntelliJ IDEA hint parameters of method

I m just swapping from eclipse to IntelliJ, and I can t find this particular feature. In Eclipse, when the cursor is inside the brackets of a method-call and I press Ctrl+Space, it tells me which ...

will installing several IDEs cause problems

I m trying to evaluate a number of IDEs like Eclipse, intelliJ, Aptana, etc. to see which one suits my needs. My question is should I expect any problems from installing several IDEs on the same ...

Restoring the IntelliJ IDEA "Project tab"

By default the IntelliJ IDEA interface contains the following tabs/panels: Project (tabbed to the left) Structure (tabbed to the left) Commander (tabbed to the right) Ant Build (tabbed to the right) ...

Grails 1.1 and how to info level logging

Which setting do I now use to produce logging output with log.info statements within my own controllers? Here s what I ve setup in config.groovy and I thought placing my domain under the info level ...

How to move IntelliJ file tabs?

In IntelliJ, when you open a bunch of source files, is there a way to rearrange the order of the file tabs? In Eclipse you can drag and drop but I don t see a way to do this in IntelliJ.

How to clear the IntelliJ project index?

I ve run into trouble that makes me suspect there is a bad index file that needs to be cleared. The symptoms are: Cmd+N will only find a subset of classes in the project Trying to run JUnit test on a ...

Limiting IntelliJ IDEA import suggestions on completion

When I type the name of a class which will need to be imported, IntelliJ lovingly pops up with a list of suggestions. However, most of the time those suggestions are things I d never want to import, ...