简体   繁体   English

在Eclipse IDE中扩展折叠的代码

[英]Expanding collapsed code in Eclipse IDE

Instead of going through each (+) sign at the left and clicking them to expand the collapsed code snippets, is there a shortcut or menu item (I couldn't find it, VS has that) to expand all the collapsed code/comments at once? 而不是通过左侧的每个(+)符号并单击它们来展开折叠的代码片段,是否有一个快捷方式或菜单项(我找不到它,VS有那个)来扩展所有折叠的代码/注释一旦? Thanks. 谢谢。

尝试使用数字键盘上的Ctrl + *

For Mac OS, I was using a PHP plugin. 对于Mac OS,我使用的是PHP插件。 It wasn't enough to change the shortcut for Collapse on Edit Text. 仅更改“编辑文本”上的“折叠”快捷方式是不够的。

In Eclipse I did these steps: 在Eclipse中,我执行了以下步骤:

  1. Ctrl-Shift-L ~ open the short cut list Ctrl-Shift-L~打开快捷方式列表
  2. Ctrl-Shift-L ~ hit it again to go to the shortcut preferences page Ctrl-Shift-L~再次点击它以转到快捷方式首选项页面
  3. Search for "Collapse" shortcut 搜索“折叠”快捷方式
  4. For the option to "Edit Text", I had to change it to Edit PHP 对于“编辑文本”选项,我不得不将其更改为编辑PHP
  5. Then I set the shortcut to CMD-SHIFT-UP_ARROW 然后我将快捷方式设置为CMD-SHIFT-UP_ARROW

And that worked. 这很有效。 I'm guessing it would be the same for Edit Java vs. Edit Text 我猜测编辑Java与编辑文本会是一样的

您可以尝试ctrl-0或Source>Uncollapse code (All)

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

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