Turn off formatter for commented lines [message #1795485] |
Mon, 24 September 2018 03:52  |
Eclipse User |
|
|
|
Hi,
Is there a way to turn off the formatter only for commented lines?
1. Example code:
int number = 10;
number = 11;
2. Code after selecting it and using Ctrl + Shift + / to comment it:
/*int number = 10;
number = 11;*/
3. Code after using auto-format Ctrl + Shift + F:
/*
* int number = 10; number = 11;
*/
4. Code after selecting it and using Ctrl + Shift + \ to uncomment it:
* int number = 10; number = 11;
It will remove /* and */ from start and end of the code, but it will leave * behind at the start of each line.
Is there a way to stop the auto-format from turning the code from 2. into 3.? Or even after the auto-format does that change, to make the Ctrl + Shift + \ remove the * from each line?
|
|
|
|
Powered by
FUDForum. Page generated in 0.08917 seconds