默认的代码风格方案是什么在IntelliJ中。

huangapple go评论82阅读模式
英文:

What is the Default Code Style -> Scheme in IntelliJ

问题

我刚开始使用IntelliJ。我最近开始使用它,想要设置Google Java代码风格。
目前在“编辑器” -> “代码风格” -> “方案”下选择了“默认”。

在点击“设置” -> “导入方案”后,我看到两个选项:

  1. IntelliJ IDEA代码风格XML
  2. Eclipse XML配置文件。

IntelliJ IDEA代码风格XML => 这和Google代码风格是一样的吗?

“默认”在方案中已选择,这是什么意思?

我已经通过下载来设置了Google代码风格。但需要了解IntelliJ中的默认设置。
非常感谢任何帮助,因为在Stack Overflow上找不到类似的问题。

英文:

I am new to IntelliJ. I have started using it recently and was looking to setup Google Java code style.
At present "Default" is selected under Editor -> Code Style -> Scheme.

On clicking settings -> "Import Scheme" I see 2 options:

  1. IntelliJ IDEA Code Style XML
  2. Eclipse XML Profile.

IntelliJ IDEA Code Style XML => Is this same as Google Code Style?

What is the Default already selected in Scheme?

I was able to setup Google Code Style by downloading it. But need to understand the Default setup in IntelliJ.
Any help is highly appreciated as couldn't find any similar question on StackOverFlow.

答案1

得分: 4

默认选择是Intellij内置的代码样式。它不是Sun或Google方案,而是另一种。

英文:

The default selection is Intellij built-in code style. It's not Sun or Google scheme, it's a different one.

答案2

得分: 0

你可以将特定方案设置为项目级别或IDE级别。项目级别仅适用于当前项目,IDE级别将被所有项目使用。默认是IDE级别的方案。

还可以查阅有关在IDE中管理代码风格的文档

英文:

You can set a certain scheme to be a project level or the IDE level. Project-level is applied only for current project - IDE-level will be used by all the projects. Default is the IDE level scheme.

Check also the documentation about managing code styles in IDE.

huangapple
  • 本文由 发表于 2020年5月3日 23:27:50
  • 转载请务必保留本文链接:https://go.coder-hub.com/61576981.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定