Changing the case of a string in Eclipse

我是研究僧i 提交于 2019-11-27 09:01:31

问题


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?


回答1:


By default, the hotkeys:

CTRL+SHIFT+Y changes to lowercase.

CTRL+SHIFT+X changes to UPPERCASE.

Or, on a Mac:

++Y changes to lowercase.

++X changes to UPPERCASE.




回答2:


You can see all shortcuts of eclipse by pressing:

CTRL+SHIFT+L




回答3:


Help-> Key assist

You will get all of eclipse's shortcuts.




回答4:


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:

To install:




回答5:


Ctrl+Shift+y : To-lower
Ctrl+Shift+x : To-Upper

In addition, in Eclipse IDE, press Ctrl+Shift+L, then you see this list of shortcuts panel

then you can find any shortcut



来源:https://stackoverflow.com/questions/6793570/changing-the-case-of-a-string-in-eclipse

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!