|
From: Alan E. <ez...@us...> - 2017-03-26 14:27:37
|
- **assigned_to**: Alan Ezust - **Group**: --> --- ** [patches:#583] change auto indent behavior when indent width != tab width** **Status:** open **Group:** **Labels:** auto-indent **Created:** Mon Apr 04, 2016 06:08 PM UTC by lundril **Last Updated:** Wed Apr 13, 2016 10:51 AM UTC **Owner:** Alan Ezust **Attachments:** - [auto_indent_change.patch](https://sourceforge.net/p/jedit/patches/583/attachment/auto_indent_change.patch) (1.2 kB; text/x-patch) With the current jedit trunk (and also the previous jedit 5.2.0 release) I get the following behavior when using auto-indent == full and tab width != indent width. Here is an example with tab width == 8 and indent width == 4. t_ marks tab, _ marks a whitespace. ~~~~ int myfunc(int a) { ____if (a==5) { ____t_ printf("Hello World\n"); ____} } ~~~~ But I would like to get (and I think this is also more correct): ~~~~ int myfunc(int a) { ____if (a==5) { t_ printf("Hello World\n"); ____} } ~~~~ So basically I want that the "printf" line simply uses one TAB and not a combination of 4 SPACEs + one TAB. The reason why I think this is more correct is, that when indenting the whole function with "shift-TAB", then the indentation will be as in the second example. --- Sent from sourceforge.net because jed...@li... is subscribed to https://sourceforge.net/p/jedit/patches/ To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/jedit/admin/patches/options. Or, if this is a mailing list, you can unsubscribe from the mailing list. |