Reputation: 1396
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
Upvotes: 0
Views: 447
Reputation: 935
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
Upvotes: 1