简体   繁体   中英

Scala intelliJ indentation after period

Is there a way to cancel the automatic indentation that does this:

Builder()
 .withFoo()
   .withBar()

When I type "." for withBar it indents the line automatically. I want it to look like this:

 Builder()
  .withFoo()
  .withBar()

Without having to manually fix the indentation.

Try going in the Settings (Ctrl+Alt+S), Editor -> Code Style and change the Scheme to Default

If it doesn't work make sure you are on the latest version for both Scala Plugin and Idea.

If it still doesn't work try File -> Invalidate Caches / Restart...

If it still still doesn't work then you might consider a reinstall of Idea.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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