Is there a way to collapse all code blocks in Eclipse?(有没有办法折叠 Eclipse 中的所有代码块?)
问题描述
Eclipse 在左侧有那个+/-"来展开和折叠代码块.
Eclipse has that "+/-" on the left to expand and collapse blocks of code.
我有数万行要处理,我真的很想折叠所有内容,并有选择地展开块来查看它们.
I've got tens of thousands of lines to go through and would really like to just collapse everything, and selectively expand blocks to look at them.
推荐答案
有一个热键,默认映射到Ctrl+Shift+NUM_KEYPAD_DIVIDE.
There is a hotkey, mapped by default to Ctrl+Shift+NUM_KEYPAD_DIVIDE.
您可以通过 Window -> Preferences 将其更改为其他内容,搜索Keys",然后搜索Collapse All".
You can change it to something else via Window -> Preferences, search for "Keys", then for "Collapse All".
要打开所有代码块,快捷键是Ctrl+Shift+NUM_KEYPAD_MULTIPLY.
To open all code blocks the shortcut is Ctrl+Shift+NUM_KEYPAD_MULTIPLY.
在Eclipse扩展PyDev中,关闭所有代码块是Ctrl + 9
In the Eclipse extension PyDev, close all code blocks is Ctrl + 9
要打开所有块,是 Ctrl + 0
To open all blocks, is Ctrl + 0
这篇关于有没有办法折叠 Eclipse 中的所有代码块?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:有没有办法折叠 Eclipse 中的所有代码块?
基础教程推荐
- 存储 20 位数字的数据类型 2022-01-01
- RabbitMQ:消息保持“未确认"; 2022-01-01
- Spring AOP错误无法懒惰地为此建议构建thisJoinPoin 2022-09-13
- 无法复制:“比较方法违反了它的一般约定!" 2022-01-01
- 修改 void 函数的输入参数,然后读取 2022-01-01
- 使用堆栈算法进行括号/括号匹配 2022-01-01
- Struts2 URL 无法访问 2022-01-01
- REST Web 服务返回 415 - 不支持的媒体类型 2022-01-01
- 问题http://apache.org/xml/features/xinclude测试日志4j 2 2022-01-01
- 如何对 Java Hashmap 中的值求和 2022-01-01
