Feature Request
For the sake of tidyness, I always surround my using directives with a region
block:
#region Using directives
using System;
using System.Collections;
using MyNamespace;
#endregion;
How about an option under Code Style --> C# --> Using Directives that would
allow this:
Surround using directives in region:
?
Cheers -
/gerrod
Please sign in to leave a comment.
While on the subject.
I have always wanted for R# to be able to organize my code in a configurable
way.
Like:
Class
|
|
|---->fields
|
|
|---->constructors
|
|
|---->public methods
|
|
|---->internal methods
|
|
|---->private methods
|
|
|---->properties
|
| etc...
The File Structure window (Resharper | Windows | Fie Structure) goes a long
way towards this. It doesn't go as far as you describe, auto-arranging code
into regions (or even auto arranging the code), but there's a lot there.
I too would defintely love to see some auto-arrange features added to the
File Structure window, so....Jetbrains, when you have the time.
>> For the sake of tidyness, I always surround my using directives with
>> a region block:
>>
>> #region Using directives
>>
>> using System;
>> using System.Collections;
>> using MyNamespace;
>> #endregion;
>>
>> How about an option under Code Style --> C# --> Using Directives that
>> would allow this:
>>
>> Surround using directives in region:
>>
>> ?
>>
>> Cheers -
>> /gerrod
that's funny, i don't surround my using directives, but i surround just
about everything else. i do it in the following order: constants,
fields, properties, constructors, delegates, and methods. if there are a
number of methods, then i break them up into #regions by static, public,
and private.
i've been meaning to create a template using codesmith, but it would be
nice if a tool (such as r#) did it for me "automagically".
ah well.
-ryan
Sean K wrote:
>>> For the sake of tidyness, I always surround my using directives with
>>> a region block:
>>>
>>> #region Using directives
>>>
>>> using System;
>>> using System.Collections;
>>> using MyNamespace;
>>> #endregion;
>>>
>>> How about an option under Code Style --> C# --> Using Directives that
>>> would allow this:
>>>
>>> Surround using directives in region:
>>>
>>> ?
>>>
>>> Cheers -
>>> /gerrod
>>
>> While on the subject.
>>
>> I have always wanted for R# to be able to organize my code in a
>> configurable way.
>>
>> Like:
>>
>> Class
>> |
>> |
>> |---->fields
>> |
>> |
>> |---->constructors
>> |
>> |
>> |---->public methods
>> |
>> |
>> |---->internal methods
>> |
>> |
>> |---->private methods
>> |
>> |
>> |---->properties
>> |
>> | etc...
We are planning to implement auto-arrange feature in ReSharper 2.x version
(x > 0 :) )
The main problem is to develop proper configuration abilities, because a lot
of user would like to see their code arranged in a very different ways
--
Eugene Pasynkov
Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"
"Sean K" <no@response.com> wrote in message
news:adc66bd5edc8c7ca5e0f5f89a0@news.jetbrains.com...
>
>>> For the sake of tidyness, I always surround my using directives with
>>> a region block:
>>>
>>> #region Using directives
>>>
>>> using System;
>>> using System.Collections;
>>> using MyNamespace;
>>> #endregion;
>>>
>>> How about an option under Code Style --> C# --> Using Directives that
>>> would allow this:
>>>
>>> Surround using directives in region:
>>>
>>> ?
>>>
>>> Cheers -
>>> /gerrod
>> While on the subject.
>>
>> I have always wanted for R# to be able to organize my code in a
>> configurable way.
>>
>> Like:
>>
>> Class
>> |
>> |
>> |---->fields
>> |
>> |
>> |---->constructors
>> |
>> |
>> |---->public methods
>> |
>> |
>> |---->internal methods
>> |
>> |
>> |---->private methods
>> |
>> |
>> |---->properties
>> |
>> | etc...
>
That's very good news! I'm anxiously waiting. :)
Brilliant! So am I :)
>> We are planning to implement auto-arrange feature in ReSharper 2.x
>> version (x > 0 :) )
>>
>> The main problem is to develop proper configuration abilities,
>> because a lot of user would like to see their code arranged in a very
>> different ways
>>