davidchipping / regionator

Regionator
2 stars 0 forks source link

Expand regions when a source file is open #2

Open sharwell opened 10 years ago

sharwell commented 10 years ago

This extension aims to reduce the chance of programmer oversights due to the use of region directives in source code. For cases where region directives simply can't be removed from the source file, it would still be helpful if this extension could expand all regions after the file is opened. Specifically, this would have the effect of executing the Edit.ExpandAllOutlining command after a source file is opened.

If this is a feature you are interested in adding, I could help with the implementation.

davidchipping commented 10 years ago

This sounds like a really useful addition to the extension. I would really like to see all regions expanded by default with the option to removing them. How would you see this being implemented? Would you use preferences to give the user the option to disable this feature?

sharwell commented 10 years ago

You have a great point. Perhaps considering the simplicity of the extension, it would be easier to create two separate extensions than create an options page for it.

I'll put together a couple of possible implementations tomorrow, one based on the Automation and Extensibility interfaces, and another based on the internal command interfaces (I recommend the latter for a number of reasons).