When pasting multi-line code, IntelliJ will first paste the code and then indent the pasted code according to the current style rules.
Starting with:
(let [a 1]
(foo))
I then copy the whole form (not including the final newline) and I want to paste it inside the let block. Starting with:
(let [a 1]
|
(foo))
I then paste the following text:
(let [a 1]
(foo))
Hoping to get:
(let [a 1]
(let [a 1]
(foo))
(foo))
After the paste but before the re-indent, the document will look like this:
(let [a 1]
(let [a 1]
(foo))
(foo))
IntelliJ will then indent line 3 by two spaces, and parinfer will run when that is complete. Note that the indentation change overlaps with the previous change from the paste, not sure if that is significant or not.
When pasting multi-line code, IntelliJ will first paste the code and then indent the pasted code according to the current style rules.
Starting with:
I then copy the whole form (not including the final newline) and I want to paste it inside the let block. Starting with:
I then paste the following text:
Hoping to get:
After the paste but before the re-indent, the document will look like this:
IntelliJ will then indent line 3 by two spaces, and parinfer will run when that is complete. Note that the indentation change overlaps with the previous change from the paste, not sure if that is significant or not.
Sandbox code to reproduce:
This produces:
This may be related to/the same as #176.