Feature Request: Align assignment statements
How hard would it be to add a feature to align assignment statements? How
hard would it be to write such a plugin? I see a Plugin menu item in the
Resharper menu, but no documentation.
I have a block of code that looks like this:
--
string key = System.IO.Path.GetExtension( files[ 0 ].FileName );
IDocumentProvider provider = _GetProvider( key );
_SwitchCurrentProvider( provider );
Document = _GetDocument( displayName, pageIndex, files, provider );
Document.Open();
--
I want it to look like this:
--
string key = System.IO.Path.GetExtension( files[ 0
].FileName );
IDocumentProvider provider = _GetProvider( key );
_SwitchCurrentProvider( provider );
Document = _GetDocument( displayName, pageIndex, files,
provider );
Document.Open();
--
Please sign in to leave a comment.
The corresponding requests are in our tracker for a while, but I rather
doubt this will be implmented in the nearest future. May be, in 3.0
--
Eugene Pasynkov
Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"
"flipdoubt" <flipdoubt@nospam.com> wrote in message
news:da27a8e4456198c8d7eecce2c39a@news.jetbrains.com...
>
>
>
>
Thanks, but what about my plugin question? How hard would it be for me to
implement this? Where can I learn how to implement this?
It's nearlly impossible to alter code formatter by plugin
Code formatter consists of 5-7 passes on source code, and each pass relies
on it's neighbours
--
Eugene Pasynkov
Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"
"flipdoubt" <flipdoubt@nospam.com> wrote in message
news:da27a8e4456338c8d840ecc1d62c@news.jetbrains.com...
>> The corresponding requests are in our tracker for a while, but I
>> rather doubt this will be implmented in the nearest future. May be, in
>> 3.0
>
Good to know. Are there any formatting settings I can change so that Resharper
does not remove extra spaces around equal signs that I put in by hand?
Thanks for your prompt replies on these questions.
string key = System.IO.Path.GetExtension( files[ 0
].FileName );
IDocumentProvider provider = _GetProvider( key );
_SwitchCurrentProvider( provider );
Document = _GetDocument( displayName, pageIndex, files,
provider );
Document.Open();
string key = System.IO.Path.GetExtension( files[ 0
].FileName );
IDocumentProvider provider = _GetProvider( key );
_SwitchCurrentProvider( provider );
Document = _GetDocument( displayName, pageIndex, files,
provider );
Document.Open();