SlickEdit Community
SlickEdit Product Discussion => SlickEdit® => Topic started by: RaffoPazzo on May 11, 2018, 11:56:36 AM
-
Hi, I came across code using pico style, eg:
void foo()
{ bar();
if (check)
{ bar();
... }
else
{ ...
... } }
void func()
{ ...
... }
Is there a way/plan to support it?
-
No plan to support it yet.
-
Is there a way I can write it myself via slick-C or something?
-
"Artistic style" appears to support it
http://astyle.sourceforge.net/astyle.html#_style=pico (http://astyle.sourceforge.net/astyle.html#_style=pico)
You can write a macro to enter braces and bind it to {
_command void pico_brace() name_info(','VSARG2_MULTI_CURSOR|VSARG2_REQUIRES_EDITORCTL|VSARG2_CMDLINE)
{
_insert_text("{ }");
cursor_left();
cursor_left();
cursor_left();
}
For C/C++, the "{" character is bound to c_begin.
-
No plan to support it yet.
Looking at all the formatting settings avaiable, it seems you only need a couple more, eg "Break line after {", "Number of spaces after {", "Keep } on same line", etc. In principle it sounds like something simple to add for you guys :)