gbegley
gbegley

Reputation: 2679

Eclipse shortcut to comment selection in an XML file

I am looking for a way to comment the current selection in an xml file in eclipse (STS 2.3.2). ctrl+/ gets seems to get ignored when editing XML.

Google left me on my own.

Upvotes: 30

Views: 34228

Answers (2)

Bhimbim
Bhimbim

Reputation: 1384

Use

Ctrl + SHIFT + L which will open a list of all major shortcuts for eclipse. 1. ForSingle line comment Ctrl + / (Forwards Slash) and

2. Single line uncomment Ctrl + \ (Backslash)

3. For Multiline comment Ctrl + Shift + / (Forwards Slash) and

4. Multiline uncomment Ctrl + Shift + \ (Backslash)

SOURCE : answered by Hardik Mishra in --> Eclipse comment/uncomment shortcut?

Upvotes: 4

dty
dty

Reputation: 18998

Ctrl-Shift-C, or something... some combination of two modifier keys and C :-)

Upvotes: 44

Related Questions