Vladimir Kabar
Vladimir Kabar

Reputation: 57

How to uncomment block java

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

Answers (2)

Lasse Meyer
Lasse Meyer

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

fsch
fsch

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

Related Questions