Android Studio 上是否有将文本转换为大写的快捷方式?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/25494740/
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
Is there a shortcut on Android Studio to convert a text to uppercase?
提问by StackOverflower
I'm trying to find a command on Android Studio to convert a selected text to uppercase but I'm unable to do so.
我试图在 Android Studio 上找到一个命令来将选定的文本转换为大写,但我无法这样做。
Is there any shortcut for this? I think it is a very common action on IDE but haven't found any clue yet.
这有什么捷径可走吗?我认为这是 IDE 上非常常见的操作,但还没有找到任何线索。
回答by San
Select the text, then go to Edit → Toggle Case (Ctrl+Shift+Uon Windows).
选择文本,然后转到“编辑”→“切换大小写”(Windows 上为Ctrl+ Shift+ U)。
回答by aProperFox
The IntelliJ shortcut is evidently Ctrl+Shift+U(Command+Shift+Uon Mac) and should work since Android Studio is based off of it. Here's their documentation page.
IntelliJ 快捷方式显然是Ctrl+ Shift+ U(Mac 上的Command+ Shift+ U)并且应该可以工作,因为 Android Studio 是基于它的。这是他们的文档页面。
回答by Dhananjay M
You need to keep Caps Lockon while using this shortcut.
您需要Caps Lock在使用此快捷方式时继续。
I could not get the shortcut Ctrl+Shift+Uto work in Android Studio on Ubuntu 14.04 until I turned on Caps Lock.
在我打开 Caps Lock 之前,我无法在 Ubuntu 14.04 上的 Android Studio 中使用快捷方式Ctrl+ Shift+ U。
回答by user1286412
Command+Shift+Uworked for me on my Mac
Command+ Shift+U在我的Mac上为我工作
回答by Pratik Butani
Sometimes some weird things happening. I am using Ubuntu 18.10
.
有时会发生一些奇怪的事情。我正在使用Ubuntu 18.10
.
My string is like :
我的字符串是这样的:
Now when I press CTRL+SHIFT+Uthen I am getting output like:
现在,当我按CTRL+ SHIFT+时,我会U得到如下输出:
So I tried with CTRL+SHIFT+WINDOWS+Uand its worked perfectly.
所以,我想用CTRL+ SHIFT+ WINDOWS+U和它的完美。
Note : I have kept CAPS LOCKON.
注意:我一直保持CAPS LOCKON。
Thank you.
谢谢你。
回答by shaby
If you are looking for it on Linux Ubuntu 14.04 , first turned on Caps Lockand then, Ctrl+ Shift+ U.
如果您在 Linux Ubuntu 14.04 上寻找它,请先打开Caps Lock,然后,Ctrl+ Shift+ U。
回答by Saman Sattari
For Ubuntuusers that Pratik Butani'sanswer work for them and it's still annoying to them, here is another workaround:
对于Ubuntu用户来说,Pratik Butani 的回答对他们有用,但仍然让他们烦恼,这是另一种解决方法:
Go to File > Settings... > Keymap
. Then search for the Toggle Case
and there must be two results. Right click on one of them and then hit Remove Ctrl+Shift+U
. Right click again and press Add Keyboard Shortcut
. Then hold Ctrl+Shift+Y
together and press OK
button to change the shortcut. Finally click Apply
to save changes.
去File > Settings... > Keymap
。然后搜索 ,Toggle Case
肯定有两个结果。右键单击其中之一,然后点击Remove Ctrl+Shift+U
。再次右键单击并按Add Keyboard Shortcut
。然后按住Ctrl+Shift+Y
并按OK
按钮更改快捷方式。最后点击Apply
保存更改。
Hope this BUGwill be fixed soon...
希望这个BUG早日修复。。。
回答by Ranveer Bedaysee
The shortcut Cmd+Shift+Xworks in Android Studio 1.5 on Mac.
快捷方式Cmd+ Shift+X适用于 Mac 上的 Android Studio 1.5。