quarto-dev / quarto-dev/quarto

Add option to enable adding label to code cells automatically

Open
#786 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement vscode
Dominant language
TypeScript
Stars
645
Forks
62
Avg merge
17h 42m
Merged PRs (30d)
13

Description

A small feature request. To encourage adding labels to code chunks, add a setting that enables adding this automatically when creating a new code cell in a .qmd file.

A added benefit to this is that I don't have to remember if it's #| or |# every time I want to add options to my code cells! ☺️

A new cell would look something like this:

```{r}
#| label: 

```

or

```{r}
#| label: Cell 1 

```

Thanks!

Contributor guide

No contributing guide indexed for this repository

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

Start by locating the entry point that creates a new code cell in a .qmd file and how settings are represented. Confirm whether the setting should emit an empty label or a generated name such as “Cell 1”; done means enabling the setting produces the requested label directive in newly created cells.

Written by the indexing model from the issue text.

Assessment

Domain
content
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.