简体   繁体   中英

How can I change string splitting style in IntelliJ Idea?

I want to change string splitting style. How can I do that? eq. Now:

String myVar = "Some " +
                  "text";

What I want:

String myVar = "Some " 
                  + "text";
  1. Go to Preferences
    • + , on the Mac
    • Ctrl + Alt + S on Windows/Linux
  2. Select Editor -> Code Style -> Java
  3. Select the Wrapping and Braces tab
  4. Tick "Operation sign on the next line" under "Binary expressions"

IntelliJ设置

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