SlickEdit Community

SlickEdit Product Discussion => SlickEdit® => SlickEdit User Macros => Topic started by: sureshkannan on February 19, 2009, 01:04:58 pm

Title: quick python indent
Post by: sureshkannan on February 19, 2009, 01:04:58 pm
When I copy paste python code, I normally have to change indentation on it. I load up the following commands and bind them to A-Left and A-Right to move my selection around.


_command pyleft() name_info(','VSARG2_MACRO|VSARG2_MARK|VSARG2_REQUIRES_MDI_EDITORCTL)
{
   execute(shift_selection_left(4));
}

_command pyright() name_info(','VSARG2_MACRO|VSARG2_MARK|VSARG2_REQUIRES_MDI_EDITORCTL)
{
   execute(shift_selection_right(4));
}