-
Notifications
You must be signed in to change notification settings - Fork 7.6k
Tabbing on single-line character range should replace characters with tab #3723
Comments
Tagging as starter bug. Per the newsgroup thread, I think the desired behavior is: insert a Tab char if the selection is entirely contains on one line; indent the line (as today) if the selection spans multiple lines. |
Correct, that is the solution. |
Fixed. Closing. @lkcampbell let us know if this is not fixed for you. |
@redmunds it works fine for editor tabbing set to tabs but it doesn't always work when tabbing is set to spaces. Updated Repro Steps:
Expected results: Observed results: |
Thanks for testing. Good catch! Re-opening. |
Closing again. @lkcampbell Please test again. |
@redmunds, yes, tested all the permutations and it appears to be working correctly now, thanks! |
OS: Windows 7
Build: sprint 24 development build 0.24.0-0 (master a9e2771)
There are lots of ways to repro this problem, but the steps I provide below represent a typical coding scenario I keep finding problematic. The end goal is to line up the indentations on the equal signs in the variable declarations.
Repro steps:
bar
and the equal sign.Observed Behavior:
Two tab characters are inserted at the beginning of the line. Ugly code.
Expected behavior:
The equal signs for variables foobar and bar should have the same indentation level. Pretty code.
Work Around:
Hit the Backspace key once before hitting the Tab key twice. It sounds simple but my muscle memory just can't seem to manage it. I think it is because some of the other editors I have used (e.g. Sublime, PSPad) give the expected behavior outlined above and I am used to it.
The text was updated successfully, but these errors were encountered: