127 lines
5.4 KiB
Text
127 lines
5.4 KiB
Text
os: mac
|
|
app: RStudio
|
|
-
|
|
|
|
run that: key("cmd-enter")
|
|
run document: key("cmd-alt-r")
|
|
run from top: key("cmd-alt-b")
|
|
run to end: key("cmd-alt-e")
|
|
run (function|funk): key("cmd-alt-f")
|
|
run section: key("cmd-alt-t")
|
|
run previous chunks: key("cmd-alt-p")
|
|
run chunk: key("cmd-alt-c")
|
|
run next chunk: key("cmd-alt-n")
|
|
run all: key("cmd-shift-s")
|
|
run knitter: key("cmd-shift-k")
|
|
run profiler: key("cmd-shift-alt-p")
|
|
|
|
# Moving around and formatting
|
|
jump back: key("cmd-f9")
|
|
jump forward: key("cmd-f10")
|
|
close all tabs: key("cmd-shift-w")
|
|
indent lines: key("cmd-i")
|
|
toggle comment: key("cmd-shift-c")
|
|
reformat comment: key("cmd-shift-/")
|
|
reformat R code: key("cmd-shift-a")
|
|
line up: key("alt-up")
|
|
line down: key("alt-down")
|
|
duplicate line up: key("cmd-alt-up")
|
|
duplicate line [down]: key("cmd-alt-down")
|
|
select to paren: key("ctrl-shift-e")
|
|
select to matching paren: key("ctrl-shift-alt-e")
|
|
jump to matching: key("ctrl-p")
|
|
expand selection: key("shift-alt-cmd-up")
|
|
reduce selection: key("shift-alt-cmd-down")
|
|
add cursor up: key("ctrl-alt-up")
|
|
add cursor down: key("ctrl-alt-down")
|
|
move active cursor up: key("ctrl-alt-shift-up")
|
|
move active cursor down: key("ctrl-alt-shift-down")
|
|
delete line: key("cmd-d")
|
|
delete word left: key("alt-backspace")
|
|
delete word right: key("alt-delete")
|
|
assign that: key("alt--")
|
|
pipe that: key("cmd-shift-m")
|
|
insert knitter chunk: key("cmd-alt-i")
|
|
|
|
# Folding
|
|
fold that: key("cmd-alt-l")
|
|
unfold that: key("cmd-shift-alt-l")
|
|
fold all: key("cmd-alt-o")
|
|
unfold all: key("cmd-shift-alt-o")
|
|
|
|
# Find and replace
|
|
find and replace: key("cmd-f")
|
|
find next: key("cmd-g")
|
|
find previous: key("cmd-shift-g")
|
|
find with selection: key("cmd-e")
|
|
find in files: key("cmd-shift-f")
|
|
run replace: key("cmd-shift-j")
|
|
run spell check: key("f7")
|
|
|
|
# Navigation and panels
|
|
go to source: key("ctrl-1")
|
|
go to console: key("ctrl-2")
|
|
go to help: key("ctrl-3")
|
|
go to history: key("ctrl-4")
|
|
go to files: key("ctrl-5")
|
|
go to (plots|plot): key("ctrl-6")
|
|
go to packages: key("ctrl-7")
|
|
go to environment: key("ctrl-8")
|
|
go to git: key("ctrl-9")
|
|
go to build: key("ctrl-0")
|
|
go to terminal: key("alt-shift-t")
|
|
go to omni: key("ctrl-.")
|
|
go to line: key("cmd-shift-alt-g")
|
|
go to section: key("cmd-shift-alt-j")
|
|
go to tab: key("ctrl-shift-.")
|
|
go to previous tab: key("ctrl-f11")
|
|
go to next tab: key("ctrl-f12")
|
|
go to first tab: key("ctrl-shift-f11")
|
|
go to last tab: key("ctrl-shift-f12")
|
|
|
|
zoom source: key("ctrl-shift-1")
|
|
(zoom|show) all: key("ctrl-shift-0")
|
|
|
|
help that: key("f1")
|
|
define that: key("f2")
|
|
previous plot: key("cmd-alt-f11")
|
|
next plot: key("cmd-alt-f12")
|
|
|
|
# devtools, package development, and session management
|
|
restart R session: key("cmd-shift-f10")
|
|
dev tools build: key("cmd-shift-b")
|
|
dev tools load all: key("cmd-shift-l")
|
|
dev tools test: key("cmd-shift-t")
|
|
dev tools check: key("cmd-shift-e")
|
|
dev tools document: key("cmd-shift-d")
|
|
|
|
# Debugging
|
|
toggle breakpoint: key("shift-f9")
|
|
debug next: key("f10")
|
|
debug step into (function|funk): key("shift-f4")
|
|
debug finish (function|funk): key("shift-f6")
|
|
debug continue: key("shift-f5")
|
|
debug stop: key("shift-f8")
|
|
|
|
# Git/SVN
|
|
run git diff: key("ctrl-alt-d")
|
|
run git commit: key("ctrl-alt-m")
|
|
|
|
# Other shortcuts that could be enabled
|
|
# run line and stay: key("alt-enter")
|
|
# run and echo all: key("cmd-shift-enter")
|
|
# extract (function|funk): key("cmd-alt-x")
|
|
# extract variable: key("cmd-alt-v")
|
|
# new terminal: key("shift-alt-t")
|
|
# rename current terminal: key("shift-alt-r")
|
|
# clear current terminal: key("ctrl-shift-l")
|
|
# previous terminal: key("ctrl-alt-f11")
|
|
# next terminal: key("ctrl-alt-f12")
|
|
# clear console: key("ctrl-l")
|
|
# popup history: key("cmd-up")
|
|
# change working directory: key("ctrl-shift-h")
|
|
# new document: key("cmd-shift-n")
|
|
# new document (chrome only): key("cmd-shift-alt-n")
|
|
# insert code section: key("cmd-shift-r")
|
|
# scroll diff view: key("ctrl-up/down")
|
|
# sync editor & pdf preview: key("cmd-f8")
|