score:97
Preferences -> C++ -> Editor -> Folding ?
Make a right click in the editor window and go to preferences there, then only the editor-relevant section of the preferences dialog will appear. This works for JDT, CDT etc...
score:0
In CFEclipse: Preferences > CFEclipse > Editor > Code Folding > Initially Collapse column, you can uncheck to see all expanded when opening, or check all boxes to close all when opening a file.
score:0
I was using salesforce apex classes with Eclipse Neon 3.3 for Java.
I found an option "define folding region" on right click in the editor, I selected the block of code i wanted to collapse and selected this property for that code. Now I am seeing + and - symbol to expand and collapse that block of code
score:1
If you want folding an all your editors, I found you can enable Folding in
Preferences > Editors > Structured Text Editors
Enable Folding
score:1
For windows eclipse using java: Windows -> Preferences -> Java -> Editor -> Folding
Unfortunately this will not allow for collapsing code, however if it turns off you can re-enable it to get rid of long comments and imports.
score:1
Here you go!
- Right Click on + button appeared on numbering strip on left most side --> Folding --> Expand All
- Right Click on + button appeared on numbering strip on left most side --> Folding --> Collapse All
This way you can expand and collapse all the methods on the file.
Plus Buttons on numbering strip
Context Menu:
score:3
I assume you are using Java, but look under the settings for your particular language.
Under the Window menu, select Preferences.
Under Java->Editor->Folding. Select "Enable Folding".
score:7
In Preferences, you'll find General > Keys. It's for setting your keyboard shortcuts.
What I use it for more often, though, is to find stuff in Eclipse. You should see an input box labelled "type filter text." It's as close as Eclipse comes to a search feature for every Eclipse command.
score:11
For Python it is as follows:
- collapse all 1 level: Ctrl+9
- expand all 1 level: Ctrl+0
- collapse current: Ctrl+-
- expand current: Ctrl++
Hope that helps.
score:14
To collapse all code blocks Ctrl + Shift+ /
To expand all code blocks Ctrl + Shift+ *
pydev:
To collapse all code blocks : Ctrl + 0
To collapse all code blocks : Ctrl + 9
Is there a way to collapse all code blocks in Eclipse?
by @partizanos and @bummi
score:19
Try this option: Preferences > Java > Editor > Folding > Enable folding
score:58
You can do ( Ctrl + Numpad_Divide ) to enable folding.
Also if you Right Click
on the area where the +
or -
was supposed to be, you can see there is a folding option.
Source: stackoverflow.com
Related Query
- How to collapse blocks of code in Eclipse?
- How to enable collapse/expand code blocks feature in eclipse
- How do I fold code for comment blocks inside method blocks in the Eclipse IDE
- Is there a way to collapse all code blocks in Eclipse?
- How to turn off the Eclipse code formatter for certain sections of Java code?
- How to add shortcut keys for java code in eclipse
- Android NDK debugging in Eclipse - how to stop segfaults/SIGILL that only occur when stepping in native code
- How to debug Java code when using ANT script in Eclipse
- How to debug compiled Java code in Eclipse
- How to change auto-generated code when creating new class in Eclipse
- How to create an Intellij and Eclipse compatible code style and code formatting configuration (for java code)?
- How can I get Eclipse to index code inside #ifdef .... #endif
- How do I modify Eclipse code formatting?
- How import eclipse code style to intellij idea?
- How do I disable Hot Code Replace in Eclipse
- How to Create Flowchart from java source code in Eclipse
- How to view Java's byte code in eclipse IDE?
- How to add Eclipse Code Formatter file in Android Studio
- How to Use Eclipse to Debug JNI code (Java & C/C++)
- Why is Eclipse highlighting my code in red and how do I turn it off?
- How to set Eclipse code formatter to support fluent interfaces
- How do I view JRE's source code in Eclipse on linux (debian)
- How do I compile my code in Eclipse using keyboard shortcut key
- How to get Eclipse Console to hyperlink text to source code files?
- How do I suppress Eclipse 3.5's warnings of dead code
- How to exclude files from Eclipse indexing (Static Code Analysis)?
- Java How to beautify the java code inside Eclipse IDE
- How to build Eclipse JDT Core from source code via Git?
- How do I attach source code locations to plugins in my Eclipse RCP target platform?
- How do I change the code convention in Eclipse
More Query from same tag
- Add a new activity to the AndroidManifest?
- GCC C++ Linker section on FC13
- Unable to make post request in android
- NullPointerException when generating webservice with Apache CXF in Eclipse
- Eclipse IDE debugging - code not reflects new changes
- "To Do"/bugs database integrating with Eclipse
- Eclipse editor not supporting java
- PoDoFo setup with eclipse , Linker error, undefined reference to symbol 'pthread_mutexattr_settype@@GLIBC_2.2.5'
- Auto refresh eclipse project upon folder update
- Exposing a server's classpath/debug source lookup in Eclipse
- Problems setting up Roboguice 2.0 in eclipse
- JavaCompiler not working in Jar
- android can't remount /system to rw
- Debugging cortex m3 using eclipse
- ClassDefNotFound first time I start Tomcat from within Eclipse
- Need to make a simple spring 3 example work
- java.lang.NoClassDefFoundError: com/jogamp/common/type/WriteCloneable jogl 2 in eclipse
- REDHAT: Unable to open eclipse
- invalid use of non-static data member 'Board::N'
- Eclipse RCP OS X Preferences/About menu integration works inside Eclipse but not outside?
- project is not showing in Eclipse after cloning repository
- Multi IDE version controlled Java project - Is it possible to do it seamlessly?
- How to run an .exe and capture the output in an Eclipse Plugin. (Java)
- import from another java project in eclipse
- Why does Tomcat 'Out of Memory' right when I attempt to start server in Eclipse?
- How to run eclipse on AWS
- How to fold or hide setters and getters in Eclipse?
- How to update eclipse via zip and keep plugins and configurations
- GitHub + Eclipse Workflows
- jackson web service error MessageBodyWriter not found for media type=application/json