Jetbrains / Intellij键盘快捷键可以折叠所有方法 [英] Jetbrains / Intellij keyboard shortcut to collapse all methods

查看:878
本文介绍了Jetbrains / Intellij键盘快捷键可以折叠所有方法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在研究一些遗留代码,这些代码具有10,000多行代码并且有100多种方法。是否有任何jetbrains IDE的快捷方式(因为快捷方式可能会在所有方法中共享)以折叠所有方法/函数,以便只显示方法签名?

I'm working on some legacy code that has a class that is 10,000+ lines of code and has 100s of methods. Is there a shortcut for any jetbrains IDE (since the shortcut would likely be shared across all of them) to collapse all the methods / functions so that only the method signatures are shown?

这样的事情:

public String myMethod(String arg1, int arg2){...}

public String mySecondMethod(String arg1, int arg2){...}


推荐答案

您可以查看 intellij代码折叠快捷方式。我想 Ctrl + Shift + - 正是您所需要的。

You may take a look at intellij code folding shortcuts. I guess that Ctrl+Shift+- is exactly what you need.

这篇关于Jetbrains / Intellij键盘快捷键可以折叠所有方法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆