IntelliJ的Java代码风格用于文本块对齐

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

IntelliJ Java code style for texts block alignment

问题

我正在寻找在IntelliJ上解决此问题的选项或插件:

在进行多行块文本时,我希望保持行的开头对齐。
进行自动重新格式化(Ctrl-Alt-L)会使行对齐错乱:

IntelliJ的Java代码风格用于文本块对齐

我希望它保持这样:

IntelliJ的Java代码风格用于文本块对齐

我在代码样式设置中找到了一些选项,但没有任何可以解决这个问题的选项,甚至是在文本块部分中名为“多行时对齐”的选项。或者我不知道如何创建文本块!

英文:

I'm looking for the option, or a plugin, that fix this issue on IntelliJ :

When doing multi-line block text, I would like to keep the beginning of the line aligned.
Doing auto-reformatting (Ctrl-Alt-L) mis-align the lines :

IntelliJ的Java代码风格用于文本块对齐

I would like it to stay like this :

IntelliJ的Java代码风格用于文本块对齐

I found some option in code-style settings, but nothing that fixed this, even the well named "Align when multiline" in Texts block section. Or I don't know how to make text block !

答案1

得分: 5

这是您寻找的二元表达式下的多行对齐选项。

英文:

It's the Align when multiline option under Binary expressions you're looking for

huangapple
  • 本文由 发表于 2020年10月7日 20:51:39
  • 转载请务必保留本文链接:https://go.coder-hub.com/64244384.html
匿名

发表评论

匿名网友

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

确定