Positron
Misc
Extensions
- Reprex Generator for R - Brings the reprex package to your editor. Same functionality as reprex::reprex() or the RStudio addin to create reproducible examples for GitHub issues, Stack Overflow, or Slack.
Shortcuts
- A lot of shortcuts don’t work if you’re in a quarto file. (e.g. ctrl + B makes text bold instead of unhiding primary side panel)
| Shortcut | Description |
|---|---|
| Ctrl + s, then o | Open file |
| Ctrl + k, then f | Focus on console |
| Up Arrow | (in console) Copy line of code above |
| Ctrl + b | Hide/Unhide Primary Side Panel (e.g. file explorer) |
| Ctrl + Alt + Windows + n | Create new file |
| Ctrl + Alt + o | Open remote connections palette (wsl, ssh) |
Settings
- Disable Preview Tabs:
"workbench.editor.enablePreview": false,
Workflows
- Start {uv} project
- Click New Folder, Click Python
- Enter name of folder, Choose the directory, Select git/no git
- Select new environment or existing environment, Select uv, Select python version
- Add packages:
uv add numpy scikit-learn polars statsmodels - Do work
- Connect to WSL2
- Ctrl + Alt + o >> Connect to WSL
- Ctrl + s, o >> enter path to project with WSL2 prefix (mnt) >> Select file
- e.g.
/mnt/c/Users/<you>/Documents/R/Projects/deeplearning-with-r
- e.g.
- Do work
- Ctrl + Alt + o >> Close remote connection