You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
autoIndent doesn't handle indented wrapped TS lines well #29285
Root cause: don't have a clue whether the unexpected indentation of previous is intentional or not.
Atom/Sublime/TextMate don't have this issue as they only change indentation when type, if you press enter, it doesn't change the indentation as they think the indentation of current line is intentional so it no longer modify that.
Matt Bierner (@mjbvz) do you think it's a good idea to disable indentation check on Enter?
I've use this pattern pretty frequently, either having 1 or 2 indents on wrapped lines. I'd likely opt to disable if it stayed as is. Here's another common thing I do:
if (someVeryLongConditionLine === true ||
andAnotherOne) {
doSomething();
}
Move lines up and down around the intentional indentation can lead to this problem, however if you are just moving lines across your intentional changed area, it'll not affect your final content
I'd like to move this fr/bug to backlog at this moment.
Activity
rebornix commentedon Jun 22, 2017
Root cause: don't have a clue whether the unexpected indentation of previous is intentional or not.
Atom/Sublime/TextMate don't have this issue as they only change indentation when type, if you press enter, it doesn't change the indentation as they think the indentation of current line is intentional so it no longer modify that.
Matt Bierner (@mjbvz) do you think it's a good idea to disable indentation check on Enter?
Tyriar commentedon Jun 23, 2017
I've use this pattern pretty frequently, either having 1 or 2 indents on wrapped lines. I'd likely opt to disable if it stayed as is. Here's another common thing I do:
Tyriar commentedon Jun 27, 2017
#29492
The current behavior is a little better but still not ideal. Consider the following:
Move up:
Move down:
rebornix commentedon Nov 21, 2017
Move lines up and down around the intentional indentation can lead to this problem, however if you are just moving lines across your intentional changed area, it'll not affect your final content
I'd like to move this fr/bug to backlog at this moment.
Fix microsoft#29285. If users have autoindent turned on, we no longer…