I have scoured the internet before posting such a basic question, but have found no solution. In RStudio I can split one code chunk into two chunks by typing cmd + opt + i
on mac while cursor is within an existing code chunk. Is there no equivalent functionality in VS Code?
If I type the keyboard shortcut to create a VS Code block (shift + cmd + i
) while cursor is within an existing code block it merely creates a new code block below.
I want this:
1 + 1
<imagine my cursor here>
1 + 1
to become this:
1 + 1
1 + 1
3