Closed
Description
Does this issue occur when all extensions are disabled?: Yes
- VS Code Version: 1.85.1
- OS Version: Darwin arm64 22.6.0
Steps to Reproduce:
- Ensure the Editor: Auto Indent setting is set to "full"
- Add the following to a
.js
file:
// comment
const foo = 42
function bar() {
console.log("bar")
}
- Copy the the first two lines to the clipboard
- Put the cursor on the empty line inside the
bar
function - Paste from the clipboard
Expected: The two pasted lines should be autoindented inside the function
Actual: The lines are not auto indented, they retain their original indent of 0
This only happens when the first line being pasted is a comment.