有没有办法折叠Eclipse中的所有代码块? [英] Is there a way to collapse all code blocks in Eclipse?

查看:276
本文介绍了有没有办法折叠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.

您可以将其更改为其他通过窗口 - >首选项,搜索键,然后搜索全部折叠。

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 < kbd> + 0

这篇关于有没有办法折叠Eclipse中的所有代码块?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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