Skip to content

Commit cfb31df

Browse files
danthe1stakurtakov
authored andcommitted
N&N entries for folding
1 parent d4d2f31 commit cfb31df

File tree

5 files changed

+33
-0
lines changed

5 files changed

+33
-0
lines changed
25.9 KB
Loading
93 KB
Loading
69.4 KB
Loading
55.3 KB
Loading

news/4.36/jdt.html

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,39 @@ <h2>JUnit</h2>
6565
<h2>Java Editor </h2>
6666
</td>
6767
</tr>
68+
<tr id="customFoldingRegions">
69+
<td class="title">Custom folding regions</td>
70+
<td class="content">
71+
It is now possible to create custom folding regions by specifying a comment at the start and end of the region.
72+
You can enable and configure this feature under <b>Window &gt; Preferences &gt; Java &gt; Editor &gt; Folding &gt; Custom folding regions</b>.
73+
<p>
74+
<img src="images/custom_folding_regions_preferences.png" alt="Preference page for custom folding regions"/>
75+
</p>
76+
<p>
77+
In that preference page, you can specify the text that should be used to start and end a custom folding region.
78+
When this is enabled, writing a comment starting with the specified region start followed by another comment starting with the specified region end creates a folding region.
79+
</p>
80+
<p>
81+
<img src="images/custom_folding_regions_code_expanded.png" alt="code containing comments with the text 'region' and 'endregion'"/>
82+
</p>
83+
<p>
84+
Custom folding regions can be collapsed like any other folding regions.
85+
</p>
86+
<p>
87+
<img src="images/custom_folding_regions_code_collapsed.png" alt="custom folding regions are collapsed"/>
88+
</p>
89+
</td>
90+
</tr>
91+
<tr id="foldingProjectPreferences">
92+
<td class="title">Project Properties page for folding</td>
93+
<td class="content">
94+
Preferences for folding can now be configured on a per-project basis in addition to configuring folding for workspaces.
95+
This page is available under <b>Project &gt; Properties &gt; Java Editor &gt; Folding</b>.
96+
<p>
97+
<img src="images/folding_property_page.png" alt="Project Properties page for folding"/>
98+
</p>
99+
</td>
100+
</tr>
68101
<!-- ******************* End of Java Editor ************************************* -->
69102

70103
<!-- ******************* Java Views and Dialogs ************************************* -->

0 commit comments

Comments
 (0)