在 XML 文件中注释选择的 Eclipse 快捷方式
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/3025546/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Eclipse shortcut to comment selection in an XML file
提问by gbegley
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.
我正在寻找一种方法来评论 eclipse (STS 2.3.2) 中 xml 文件中的当前选择。ctrl+/ gets 似乎在编辑 XML 时被忽略。
Google left me on my own.
谷歌离开了我。
回答by dty
Ctrl-Shift-C, or something... some combination of two modifier keys and C :-)
Ctrl- Shift- C,或者其他东西......两个修饰键和C的某种组合:-)
回答by Bhimbim
Use
用
Ctrl + SHIFT + L which will open a list of all major shortcuts for eclipse. 1. ForSingle line comment Ctrl + / (Forwards Slash) and
Ctrl + SHIFT + L 这将打开 eclipse 的所有主要快捷方式的列表。1. ForSingle line comment Ctrl + / (Forwards Slash) 和
2. Single line uncomment Ctrl + \ (Backslash)
2.单行取消注释Ctrl + \(反斜杠)
3. For Multiline comment Ctrl + Shift + / (Forwards Slash) and
3. 对于多行注释 Ctrl + Shift + /(正斜杠)和
4. Multiline uncomment Ctrl + Shift + \ (Backslash)
4. 多行取消注释 Ctrl + Shift + \(反斜杠)
SOURCE : answered by Hardik Mishra in --> Eclipse comment/uncomment shortcut?
来源:由 Hardik Mishra 在 --> Eclipse 注释/取消注释快捷方式中回答?