Re: automatic flag indentation.
Hello,
Is it possible to make viemu to perform a flag indentation when pressing the '=' key instead of using the default VS indentation style?
Thank you,
Jenya
You are not logged in. Please login or register.
Hello,
Is it possible to make viemu to perform a flag indentation when pressing the '=' key instead of using the default VS indentation style?
Thank you,
Jenya
Hi Jenya,
What is a "flag indentation"? Sorry I don't identify readily what you mean. You can probably achieve it with mappings (:vnoremap = ..., :nnoremap == ..., etc...)
Regards,
-- Jon
Thank you for responding,
For example:
void foo(int a,
MyClass const& b,
someOtherClass const& c,
double d)
{
}
As you can see, all arguments in the foo's signature are alligned on the left side. Sometimes that is called a flag indentation because it looks like arguments are attached to a flag pole on the left side.
Jenya
Thanks Jenya for the explanation. Now I understand. Unfortunately, ViEmu just uses VS's internal reindentation mechanism for ==, so it doesn't support that kind of thing. If you write a VS macro to do that somehow, you can map == to the macro like this:
:nnoremap == :vsc MyMacros.MyMacro<return>
And that would be a way to invoke it within the framework of ViEmu. Providing reformatters is quite complex functionality, and is unfortunately out of scope for ViEmu.
Regards,
-- Jon
Currently installed 3 official extensions. Copyright © 2003–2009 PunBB.
[ Generated in 0.027 seconds, 12 queries executed ]