简体   繁体   English

如何阻止 IntelliJ Cursive 重新格式化我的 Clojure 代码?

[英]How do I stop IntelliJ Cursive from re-formating my Clojure code?

How do I stop IntelliJ Cursive from re-formating my Clojure code?如何阻止 IntelliJ Cursive 重新格式化我的 Clojure 代码?
I'll be staring at a function, realize where I missed a parenthesis, put it in, and BAM!我会盯着一个函数,意识到我错过了括号的地方,把它放进去,然后BAM! my code is now all re-indented!我的代码现在全部重新缩进了!
I DON'T WHAT IT TO DO THAT!我不知道怎么做!
I like my code the way I laid it out!我喜欢我的代码的布局方式!
I don't want Cursive's formatting help unless I ask for it!除非我要求,否则我不想要 Cursive 的格式帮助!

I found something.我发现了一些东西。
Settings --> Editor --> Code Style --> Clojure...设置 --> 编辑器 --> 代码样式 --> Clojure...
This last option may only be present if you've installed the "Cursive" plug-in for Clojure code.最后一个选项可能只有在您为 Clojure 代码安装了“Cursive”插件时才会出现。
There is a HUGE list of indents and tab/spaces settings.有一个巨大的缩进和制表符/空格设置列表。
I set everything to zero (0).我将所有内容都设置为零 (0)。
That seems to be holding, so far.到目前为止,这似乎是成立的。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM