在 Eclipse 中更改字符串的大小写
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/6793570/
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
Changing the case of a string in Eclipse
提问by Itay Moav -Malimovka
How do I make a lowercase string uppercase using Eclipse? I want to select a string and either uppercase it or lowercase it. Is there a shortcut for doing this?
如何使用 Eclipse 使小写字符串大写?我想选择一个字符串并将其大写或小写。这样做有捷径吗?
回答by Ken Chan
By default, the hotkeys:
默认情况下,热键:
CTRL+SHIFT+Ychanges to lowercase.
CTRL+ SHIFT+Y变为小写。
CTRL+SHIFT+Xchanges to UPPERCASE.
CTRL+ SHIFT+X变为大写。
Or, on a Mac:
或者,在 Mac 上:
⌘+⇧+Ychanges to lowercase.
⌘+ ⇧+Y变为小写。
⌘+⇧+Xchanges to UPPERCASE.
⌘+ ⇧+X变为大写。
回答by Levent Akdeniz
You can see all shortcuts of eclipse by pressing:
您可以按以下键查看 eclipse 的所有快捷方式:
CTRL+SHIFT+L
CTRL+ SHIFT+L
回答by Caution Continues
Help-> Key assist
You will get all of eclipse's shortcuts.
您将获得 eclipse 的所有快捷方式。
回答by Franck Dernoncourt
Eclipse only provides a keyboard shortcut by default. If you prefer to use the menu, you can use the free plugin AnyEdit Tools, which will add some entries to the context menu to change the case of the selected text:
默认情况下,Eclipse 仅提供键盘快捷键。如果您更喜欢使用菜单,您可以使用免费插件AnyEdit Tools,它将在上下文菜单中添加一些条目以更改所选文本的大小写:
To install:
安装: