読者です 読者をやめる 読者になる 読者になる

R言語による電子カルテデータの二次利用

~R言語初心者がデータ処理を楽しめるように基本的内容中心のサイトです~

Rstudio shortcut keys for writing code (Windows/Linux)

R言語 Rstudio

Introduction

To write code quickly like vim or emacs, it is better to use shortcuts. In this blog, I will explain shortcuts that I like and use frequently. For other shortcut keys which I don’t introduce ,please refer to the following site.


Transition

  • Move cursor to start of line : Home
  • Move cursor to end of line : End
  • Jump to word : Ctrl + Right/Left

Select Word

  • Ctrl + Shift + Right/Left

f:id:r_beginner:20170209180343g:plain


Select Line

  • Alt + Shift + Right/Left

f:id:r_beginner:20170211075438g:plain


Select All

  • Ctrl + A

f:id:r_beginner:20170211083124g:plain


Cut,Copy,Paste

  • Ctrl + X
  • Ctrl + C
  • Ctrl + V

Delete Line

  • Ctrl + D f:id:r_beginner:20170209180452g:plain

Yank line up to cursor/ after cursor

  • Ctrl + U/K f:id:r_beginner:20170209180523g:plain

Move Lines Up/Down

  • Alt + Up/Down f:id:r_beginner:20170209180654g:plain

Copy Lines Up/Down

  • Shift + Alt + Up/Down f:id:r_beginner:20170209180758g:plain

Ubdo,Redo

  • Ctrl + Z (e.g. after Ctrl+D)
  • Ctrl + Shift +Z f:id:r_beginner:20170211083654g:plain

(Un)Comment lines

  • Ctrl + Shift + C f:id:r_beginner:20170209180935g:plain

Insert ‘<-’ , ‘%>%’

  • Alt + -
  • Ctrl + Shift + M f:id:r_beginner:20170209181019g:plain

Reindent lines

  • Ctrl + I f:id:r_beginner:20170209181059g:plain

Select and Replace

  • Ctrl + Shift + Right/Left
  • Ctrl + Shift + Alt + M (Select -> Replace) f:id:r_beginner:20170211084018g:plain

Find and Replace

  • Ctrl + F
  • Ctrl + Shift + Alt + M (Find -> Replace) f:id:r_beginner:20170211084231g:plain

Find in Files

  • Ctrl + Shift + F

Add New Cursor Above/Below

  • Ctrl + Alt + :arrow_up:/:arrow_down: f:id:r_beginner:20170210081059g:plain

Reference