When I comment a line of code in JBoss Developer Studio with command+/
, it makes the comment left-aligned. Instead, I'd like the comment to follow the indentation size of my code block. How can I accomplish this?
Current
private static String transformSymbolicName(String unformatted) {
// String formatted = unformatted.replace('-', '.').toLowerCase();
return formatted;
}
Desired
private static String transformSymbolicName(String unformatted) {
// String formatted = unformatted.replace('-', '.').toLowerCase();
return formatted;
}
Tools: JBoss Developer Studio 8, JDK 1.7.0_80, macOS Sierra
Go to
Go to Comments tab In General Settings block and remove tick for:
a. Never indent line comments on first column
b. Never indent block comments on first column
You can see how it affects in the Preview window on the right
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.