Skip to content

Add "insert code cell" to editor action bar #709

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
May 22, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions apps/vscode/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
## 1.122.0 (unreleased)

- Change controls on Positron editor action bar and fix "Render on Save" behavior (<https://github.com/quarto-dev/quarto/pull/706>).
- Add additional new control ("Insert Code Cell") to Positron editor action bar (<https://github.com/quarto-dev/quarto/pull/709>).
- Turn off completions in visual mode in Positron, as a temporary stopgap until we can invest more in LSP features in the visual editor (<https://github.com/quarto-dev/quarto/pull/710>).

## 1.121.0 (Release on 2025-05-02)
Expand Down
14 changes: 13 additions & 1 deletion apps/vscode/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -296,8 +296,13 @@
},
{
"command": "quarto.insertCodeCell",
"icon": "$(insert)",
"title": "Insert Code Cell",
"category": "Quarto"
"category": "Quarto",
"actionBarOptions": {
"controlType": "button",
"displayTitle": true
}
},
{
"command": "quarto.runSelection",
Expand Down Expand Up @@ -651,6 +656,13 @@
"group": "1_editor_mode"
}
],
"editor/actions/right": [
{
"command": "quarto.insertCodeCell",
"when": "editorLangId == quarto",
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We don't need this in the Visual Editor (it has its own bar that includes inserting a code cell) or markdown files (executable code cells don't do anything in .md).

"group": "2_execute"
}
],
"editor/context": [
{
"command": "quarto.formatCell",
Expand Down