简体   繁体   English

intellij快捷方式 - 如何折叠所有javadocs +方法实现

[英]intellij shortcut - how to fold all javadocs + method implementations

I can't find some IntelliJ IDEA shortcuts. 我找不到一些IntelliJ IDEA快捷方式。

When I go to a class, I want to be able to see only the method signature without additional details. 当我去上课时,我希望能够只看到方法签名而没有其他细节。

Here is what I mean. 这就是我的意思。 Before: 之前:

在此输入图像描述

And after: 之后:

在此输入图像描述

Is there a shortcut for this? 这有什么捷径吗?

Code Folding of a whole file is 整个文件的代码折叠是

Ctrl+Shift+Minus and Ctrl+Shift+Numpad_Plus

or in the menu 或在菜单中

choose Code | 选择代码| Folding | 折叠| Collapse All or Code | 折叠全部或代码| Folding | 折叠| Expand All. 展开全部。

For more shortcuts for code folding: 有关代码折叠的更多快捷方式:

IntelliJ中的代码折叠快捷方式

Docs for Code Folding Shortcuts 代码折叠快捷方式的文档

Go to File\\Settings\\Keymap\\Main menu\\Code\\Folding (or just search for " Expand doc comments " in Settings. 转到File\\Settings\\Keymap\\Main menu\\Code\\Folding (或只在设置中搜索“ Expand doc comments ”。

You can set a custom shortcut (ie CTRL + ALT + SHIFT + + / - ) to expand or collapse all Javadocs in the file. 您可以设置自定义快捷方式(即CTRL + ALT + SHIFT + + / - )来展开或折叠文件中的所有Javadoc。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM