vscode-R icon indicating copy to clipboard operation
vscode-R copied to clipboard

request codeLensCommands: run to next chunck

Open ShuguangSun opened this issue 5 months ago • 0 comments

Is your feature request related to a problem? Please describe. I'm using rstudio like section # xxx ---- and ## xxx ---- for outline which works well for vscode.

However, if I put the section as chunck, but subsection not. The extension will recogonization the first part as chunck. For example:

# %% chunck 1 ----
x <- 1
## subection 1 ---
y <- 1

# %% chunck 2 ----
print(y)

If I run code lens command run current chunck on chunck 1, it will run code to subsection 1, but not to chunck 2.

Describe the solution you'd like I'd like a lens command run to next chunck which will run code between two chuncks.

FYI. There is a command r.goToNextChunk.

ShuguangSun avatar Aug 27 '25 01:08 ShuguangSun