The place to learn about your Mac. Tips and tutorials for novices and experts.

BBEdit’s Code Folding Cleans Your Work Space


If you haven't noticed, we're big fans of Bare Bones’ BBEdit around here. We use it for just about everything, and if you ask us, it's about as close to text-editing perfection as you can get! New in BBEdit 8.6 is Code Folding. Code Folding literally collapses all of the text and/or data between two predefined entities in a specific computer language to reduce complexity of the content in the editor window.

Notice the downward facing arrows in the gutter (the section directly to the left of the text area).

Clicking one of the down, or folding, arrows collapses all of the text between the specified delimiters, in this case it is the HTML tags for a paragraph (< p >). Folded Code is denoted with the right pointing folding arrow and the “...” highligted in black.

Sometimes, Code Folding is not available for certain strings of text due to either differences in formatting or unrecognized code delimiters. To manually Fold Code, highlight the text by clicking and dragging with the cursor. Next, right-click on the selected text to bring up the following contextual menu.

Select Fold Selection from the contextual menu to fold the selected text. Similar to the automatically recognized folding areas in the document, manually folded text is denoted with the “...” highlighted in black. Do note that manually folded text does not have the right pointing folded arrow in the gutter.

Text can be folded as much or as little as needed. To Unfold text, click the right-pointing folded arrow in the gutter or double-click the “...” collapsed text icon in the document.



Meet Your Macinstructor

Justin Busch is an educational technician in the Distance Learning Program at the Community College of Allegheny County. He is currently a graduate student at Seton Hill University, where he is working towards his Masters Degree in Education with an emphasis on Instructional Systems Design. He has been a Mac user since 1994.


 
                          





Copyright © 2016 Macinstruct. This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License.