Aptana Studio: code folds are not remembered

I started using Aptana Studio 3 with a large JS document. It is very important for me that the code be complex to make the document more manageable. Unfortunately, I continue to discover that the folded parts of the document unfold for some reason and that when I close and open the document again, the folds are no longer remembered.

Is there a way to make code folds more permanent in Aptana?

+4
source share
2 answers

I did not find a way to make code folds permanent, but I would like to know though

In the meantime, I used the Collapse All option in combination with the bookmarks.

When you open the file, you can right-click on the left margin and choose to collapse all (or CTRL + SHIFT + numpad divide). If you are working on a code block, you can also attach a bookmark by right-clicking in the left field, then from the Bookmarks tab, when you double-click on a bookmark, it expands only this code block and brings you to it.

To open a bookmark at the bottom of the window: Window > Show View > Other > General > Bookmarks

+3
source

There may be two problems here:

1) The code will be deployed if it is in an error state (i.e. the document is distorted). Some work has been done so that this does not happen all the time, but if you have a specific use case, you often come across this, I suggest making an error about it so that developers can take a look.

2) Special code folds are not saved in open / closed editors. However, you might be interested to know that in version 3.0.2 the initial folding of code blocks will be customized, so you can set some items to automatically start as folded.

+2
source

All Articles