Feature request: Code folding.

Hi,

code folding would be a nice addition to the Sigasi HDT.

Regard,
--
Trond Danielsen, MSc
Project Engineer
Norbit AS

code foldingexists

Hi Trond,

Code folding was released in July. http://www.sigasi.com/node/157
If this doesn't work for you, please let us know.

Philippe

my mistake

Indeed there is! I should get my glasses checked...

It would be great if code

It would be great if code folding would also work for if and case statements.

Hi Chris, Where would you

Hi Chris,

Where would you want to fold? Are you thinking of a single fold for the entire statements, or separate folds for the else and when parts?

Are you aware of any editors that support VHDL code folding at this level of detail?

Anybody else who would vote for this feature?

Hi Philippe. UltraEdit can do

Hi Philippe.

UltraEdit can do it if the vhdl wordfile specifies it.
Its quite easy to create one, as you only have to specify additional fold strings. I don't know if the standard wordfile does this, as my company uses their own setup for many languages.

Most editors for c do that kind of folding if you are using braces around your statements (CodeBlocks and is one of them, I think VisualStudio does it also).
I admit that c makes this a little easier as the folding characters are always the same. But using 'then' 'elsif' and 'else' as folding indicators would not be that different. The only difference would be that elsif and else would both indicate a closing and a new opening fold.

I think that this feature could be more important to VHDL as to c:
As one is often restricted by the language to put many statements in a single process, there are more often long and cascaded control structures.

Folding on component/entity instantiation

In the architecture statements level, my code usually consists of three kinds of constructs:
1. simple signal assignements (usually short)
2. processes (these can be long sometimes)
3. component/entities instantiation

Right now, HDT 2.0 only allows me to fold (2). For it to be a useful feature (in this specific coding style), it would need to enable code folding for (2) and (3) above.

This is not a rant, I'm just posting because we were invited to vote... Keep up with the good work!

Thanks for your input

Thanks for your input Ricardo.

My first thought is that this might be too much tailored to a specific coding style. We'd need to get more input from other users, and we need to think of a clean way (interface-wise) before we can offer this feature.

Post new comment

The content of this field is kept private and will not be shown publicly.
By submitting this form, you accept the Mollom privacy policy.