posit-dev / posit-dev/positron

Execute Current Code Section (defined by special header comments) command

Open
#8,902 4 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement lang: r support
Dominant language
TypeScript
Stars
4.3k
Forks
184
Avg merge
1d 11h
Merged PRs (30d)
206

Description

Positron Version: 2025.08.0 build 130
Code - OSS Version: 1.102.0
Commit: 76ddce53e85437b013671fe7d91a3a1c54f48341
Date: 2025-08-01T20:08:51.894Z
Electron: 35.6.0
Chromium: 134.0.6998.205
Node.js: 22.15.1
V8: 13.4.114.21-electron.0
OS: Darwin arm64 23.6.0

Session details: R version 4.4.2 (2024-10-31)

Describe the issue:

I would like to use "Execute Current Code Section" in Positron like in RStudio (Ctrl + Alt + T). Also there is no thin vertical bars next to the outline.

Expected or desired behavior:

Image ↑RStudio



Image

↑ Positron



  1. I'd like to run Section 1 by pressing Ctrl + Alt + T only when the cursor is in Section 1 (Lines 1–5 in this image).
  2. I'd like to display the thin vertical bar (see black arrow in the image) next to the outline to indicate where we are in the entire R script.

Could anyone tell me how I can use these features? If we can't now, then I hope they are implemented in a future version of Positron!

Thank you so much in advance.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the request in Positron with an R script containing the special header-comment sections, using the described Ctrl + Alt + T command and outline view. Investigate the existing code-section execution and outline entry points. Done means the command runs only the section containing the cursor and the outline shows the section-position indicator.

Written by the indexing model from the issue text.

Assessment

Tech stack
r, typescript
Domain
developer-experience, frontend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.