Author Topic: quick python indent  (Read 7470 times)

sureshkannan

  • Community Member
  • Posts: 7
  • Hero Points: 0
quick python indent
« 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));
}