quarto-dev / quarto

Quarto open-source scientific and technical publishing system
https://quarto.org
GNU Affero General Public License v3.0
315 stars 26 forks source link

VS Code extension: "insert code cell" behavior from inside a code cell #382

Open juliasilge opened 7 months ago

juliasilge commented 7 months ago

If you have a code cell like this, with your cursor on the empty line at 🌟:

```{python}
1 + 1
🌟
2 + 2

and you do "insert code cell", either via keyboard shortcut or the command palette, then you get this result:
1 + 1

2 + 2

We are finding that this is quite surprising to users and not what they want/expect. Instead they want output like what you get when taking the same action in RStudio:
1 + 1
2 + 2