Reputation: 57
I'm using shortcut ctrl+shift+/ and i get this:
/* public void printObjects() {
for (T o : array) {
System.out.println(o);
}
}*/
and after save (for example ctrl +s ), my work gets this :
/*
* public void printObjects() { for (T o : array) { System.out.println(o); }
* }
*/
and of course ctrl + +shift + \ doesn't work. And i left with annoying "stars".
Eclipse Mars 4.5
Upvotes: 2
Views: 749
Reputation: 1479
Use CTRL + 7 instead, when having marked the text you want to be turned into a comment. Works both to comment and uncomment and is way more flexible, because you can easily comment/uncomment single lines.
Upvotes: 5
Reputation: 201
You can use CTRL + SHIFT + C
but then every single line is commented out with //
I think you also can resolve your problem by apdapting the saving options of your eclipse instance.
Upvotes: 0