-
Notifications
You must be signed in to change notification settings - Fork 29
Add more docs around migration from RStudio #116
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
Changes from 15 commits
9d77d8e
3ee604d
36e21df
5ed75db
e6bc59c
0f48f9d
0f3ca00
e3fddd9
994bfb0
ee11368
5af5a94
928cec1
a5e96cc
ddb2086
b1f6a4a
7b36f53
1e6d060
50ba32e
8b45042
1b68aca
8d9453a
1032b75
c2591cb
a4faa3c
99057f2
384da3c
7b9b385
72bbc7c
be56aa5
c7fcc54
05a71c5
ac52e4e
df76b25
f8a6ff9
eb5946c
3c96717
5738433
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -40,3 +40,5 @@ Action Bar | |
| Action Bars | ||
| Top Action Bar | ||
| Jupyter Notebooks | ||
| Air | ||
| R | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We'll want this to be consistent with the framing in the UI section: #95
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yeah at the end of
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think I might advocate for a version with Python code on the UI page and a version with R code here on this page. |
juliasilge marked this conversation as resolved.
Show resolved
Hide resolved
|
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,42 @@ | ||
| --- | ||
| title: "RStudio Keybindings" | ||
| aliases: | ||
| - rstudio-keybindings.html | ||
| --- | ||
|
|
||
| <!-- vale Posit.Contractions = NO --> | ||
|
|
||
| Keyboard shortcuts are the most efficient way to accomplish tasks that come up frequently in your coding workflow. | ||
| As you migrate from RStudio to Positron, maintaining your productivity means working with—not against—your muscle memory. | ||
|
|
||
| Many familiar shortcuts will work immediately, because they are built-in to Positron and its integrated R support. | ||
| These are documented with [Positron's keyboard shortcuts](keyboard-shortcuts.qmd). | ||
| That is also where you can learn how to customize shortcuts. | ||
|
|
||
| ## RStudio keybindings in Positron | ||
|
|
||
| A large set of RStudio keybindings can be enabled with the [`workbench.keybindings.rstudioKeybindings` setting](positron://settings/workbench.keybindings.rstudioKeybindings). | ||
juliasilge marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| Restart Positron after changing this setting. | ||
|
|
||
| | Shortcut | Description | | ||
| | -------- | ----------- | | ||
| | <kbd>Ctrl</kbd>+<kbd>1</kbd> | Focus Source | | ||
| | <kbd>Ctrl</kbd>+<kbd>2</kbd> | Focus Console | | ||
| | <kbd>Cmd/Ctrl</kbd>+<kbd>.</kbd> | Go to Function/Symbol | | ||
| | <kbd>Cmd/Ctrl</kbd>+<kbd>Shift</kbd>+<kbd>C</kbd> | Comment/Uncomment a line | | ||
| | <kbd>Cmd/Ctrl</kbd>+<kbd>Shift</kbd>+<kbd>N</kbd> | Create a new R file | | ||
| | <kbd>F2</kbd> | Go to definition | | ||
| | <kbd>Cmd/Ctrl</kbd>+<kbd>I</kbd> | Reindent selection | | ||
| | <kbd>Cmd/Ctrl</kbd>+<kbd>Shift</kbd>+<kbd>A</kbd> | Reformat selection | | ||
| | <kbd>Cmd/Ctrl</kbd>+<kbd>Shift</kbd>+<kbd>Enter</kbd> | Source current R script with echo | | ||
| | <kbd>Cmd/Ctrl</kbd>+<kbd>Alt</kbd>+<kbd>Shift</kbd>+<kbd>M</kbd> | Rename symbol | | ||
| | <kbd>Cmd/Ctrl</kbd>+<kbd>Alt</kbd>+<kbd>I</kbd> | Insert code cell (Quarto) | | ||
| | <kbd>Cmd/Ctrl</kbd>+<kbd>Enter</kbd> | Run current line (Quarto) | | ||
| | <kbd>Cmd/Ctrl</kbd>+<kbd>Shift</kbd>+<kbd>Enter</kbd> | Run current cell (Quarto) | | ||
| | <kbd>Cmd/Ctrl</kbd>+<kbd>Alt</kbd>+<kbd>M</kbd> | Open version control pane | | ||
| | <kbd>Cmd/Ctrl</kbd>+<kbd>Alt</kbd>+<kbd>Left</kbd> | Go to previous editor tab | | ||
| | <kbd>Cmd/Ctrl</kbd>+<kbd>Alt</kbd>+<kbd>Right</kbd> | Go to next editor tab | | ||
| | <kbd>Cmd/Ctrl</kbd>+<kbd>D</kbd> | Delete the current line | | ||
| | <kbd>Cmd/Ctrl</kbd>+<kbd>Shift</kbd>+<kbd>H</kbd> | Set working directory | | ||
| | <kbd>Cmd/Ctrl</kbd>+<kbd>Shift</kbd>+<kbd>R</kbd> | Insert section | | ||
| | <kbd>Alt</kbd>+<kbd>Shift</kbd>+<kbd>K</kbd> | Open global keybindings list | | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,19 @@ | ||
| --- | ||
| title: "Navigation" | ||
| --- | ||
|
|
||
| This guide helps RStudio users adapt to Positron's methods for navigating through source code. | ||
|
|
||
| *Based on converting everything I see here: <https://docs.posit.co/ide/user/ide/guide/code/code-navigation.html>* | ||
|
||
|
|
||
| | Navigation Task | RStudio | Closest equivalent in Positron | | ||
| | --------------- | ------- | -------- | | ||
| | Find in Files | <kbd>Ctrl/Cmd</kbd>+<kbd>Shift</kbd>+<kbd>F</kbd> | <kbd>Ctrl/Cmd</kbd>+<kbd>Shift</kbd>+<kbd>F</kbd> <br> [Search across files](https://code.visualstudio.com/docs/editor/codebasics#_search-across-files) | | ||
| | Go to File | <kbd>Ctrl/Cmd</kbd>+<kbd>.</kbd> | <kbd>Ctrl/Cmd</kbd>+<kbd>P</kbd> <br> [Quick open](https://code.visualstudio.com/docs/editing/editingevolved#_quick-file-navigation)| | ||
| | Go to Function/Symbol | <kbd>Ctrl/Cmd</kbd>+<kbd>.</kbd> | With RStudio keybindings enabled: <br> <kbd>Ctrl/Cmd</kbd>+<kbd>.</kbd><br><br>In all configurations: <br> <kbd>Ctrl/Cmd</kbd>+<kbd>T</kbd> <br>[Go to Symbol in Workspace](https://code.visualstudio.com/docs/editor/editingevolved#_go-to-symbol)<br><br><kbd>Ctrl/Cmd</kbd>+<kbd>Shift</kbd>+<kbd>O</kbd> (symbols in current file) | | ||
| | Go to Function Definition | <kbd>Ctrl/Cmd</kbd> + click or <kbd>F2</kbd> | With RStudio keybindings enabled: <br> <kbd>Ctrl/Cmd</kbd> + click <br><br> In all configurations: <br> <kbd>F2</kbd> | | ||
| | Jump to Line | <kbd>Alt/Option</kbd>+<kbd>Shift</kbd>+<kbd>G</kbd> | <kbd>Ctrl</kbd>+<kbd>G</kbd> | | ||
| | Navigate Back or Forward | <kbd>Ctrl/Cmd</kbd>+<kbd>F9</kbd> <br> <kbd>Ctrl/Cmd</kbd>+<kbd>F10</kbd> | Windows/Linux: <br> <kbd>Alt</kbd>+<kbd>Left</kbd><br> <kbd>Alt</kbd>+<kbd>Right</kbd> <br><br> Mac: <br> <kbd>Ctrl</kbd>+<kbd>-</kbd> <br> <kbd>Ctrl</kbd>+<kbd>Shift</kbd>+<kbd>-</kbd> | | ||
| | Focus Previous or Next Editor Tab | <kbd>Ctrl/Cmd</kbd>+<kbd>Alt</kbd>+<kbd>Left</kbd> <br> <kbd>Ctrl/Cmd</kbd>+<kbd>Alt</kbd>+<kbd>Right</kbd> | With RStudio keybindings enabled: <br> <kbd>Ctrl/Cmd</kbd>+<kbd>Alt</kbd>+<kbd>Left</kbd> <br> <kbd>Ctrl/Cmd</kbd>+<kbd>Alt</kbd>+<kbd>Right</kbd> | | ||
|
|
||
| *TO DISCUSS: say anything about the outline? Or breadcrumbs? This feels like an active area of folks asking questions and opening issues, based on some friction in their RStudio to Positron migration journey.* | ||
|
||
Uh oh!
There was an error while loading. Please reload this page.