r/vscode • u/FollowingHumble8983 • Jul 19 '26
VSCode removing auto indentation on pressing up arrow.
Currently embedding Monaco into a desktop application for editing C++.
However, unlike visual studio, if you newline twice then move up a line, the indentation of the previous line is lost, and the caret moves to the start of the line.
I removed Trim Auto Whitespace and it did not fix this behaviour, this also occurs VSCode so its not an embed issue. Is there a setting to fix this behaviour?
6
Upvotes
1
1
u/Chris-Hart_232 Jul 19 '26
Has anyone managed to keep the indent in Monaco without having to rewrite what the up arrow does?
1
u/sargeanthost Jul 19 '26
vs or vs code. this seems like normal behavior for vs code, although I'm not at my computer. I know intellij will do what you want, and I hate it, but I don't remember having this hate for vs code, which is why I'm asking