如何在 Android Studio 中通过键盘快捷键覆盖方法

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/26574277/
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

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-20 11:52:49  来源:igfitidea点击:

How to override method via keyboard shortcut in Android Studio

androidmethodsoverridingkeyboard-shortcuts

提问by ahsan.dev

I can finally ask a question to get my points up.

我终于可以问一个问题来提高我的分数了。

In android studio, I want to be able to override the method, however I do not know the keyboard shortcut. Does anyone know?

在 android studio 中,我希望能够覆盖该方法,但是我不知道键盘快捷键。有人知道吗?

回答by Alupotha

You can not remember all shortcuts :)
Android Studio(actually Intellij) has a solution

您无法记住所有快捷方式:)
Android Studio(实际上是 Intellij)有一个解决方案

quick command search : ctrl+shift+A

快速搜索命令:ctrl+ shift+A

screenShot of SearchBox

搜索框的屏幕截图

if you have more memory here it is CTRL+ O

如果你有更多的记忆这里是CTRL+O

回答by Ragnar

CTRL+ O

CTRL+ O

For more shortcut look here(archive.org mirror)

有关更多快捷方式,请查看此处(archive.org 镜像)

回答by GabrielOshiro

Windows and Linux CTRL+ O

Windows 和 Linux CTRL+O

Mac ^+ O

苹果机 ^+O



Complete IntelliJ shortcuts

完整的 IntelliJ 快捷方式

Windows and Linux

Windows 和 Linux

MacOSX

MacOSX

回答by LearningToCode

ctrl + o -> windows shows overriden method in Android Studio

ctrl + o -> windows 在 Android Studio 中显示覆盖方法