Tips and Tricks for Visual Studio Code
Maya Sheriff
Posted on June 4, 2024
Terminal info:
-Our standard bash prompt environment for entering commands like rake grade or bin/server
-Pry for interacting with a database (we could also run rails console for that)
-Irb for typing in pure Ruby code
Commands:
-Reopen a pane
-Left
Mac OS: ⌘ + B
Windows: Ctrl + B
-Bottom
Mac OS: ⌘ + J
Windows: Ctrl + J
-Clear Terminal
Mac OS: ⌘ + K
Windows: Ctrl + K
-Interrupt command
Mac OS: ⌘ + C
Windows: Ctrl + C
-Quick Open file
Mac OS: ⌘ + P
Windows: Ctrl + P
-Command Palette
Mac OS: ⌘ + Shift + P
Windows: Ctrl + Shift + P
-Jump to end of line
Mac OS: ⌘ + E
Windows: Ctrl + E
-Exit
Mac OS: Q
Windows: Q
-Toggle Code
Mac OS: ⌘ + /
Windows: Ctrl + /
-Find Next Selection
Mac OS: Command + D
Windows: Ctrl + D
-Move line
Mac OS: Option + ⬇
Windows: Alt + ⬇
-Duplicate line
Mac OS: Shift + Option + ⬇
Windows: Shift + Alt + ⬇
Other:
-rails console = opens an interactive Ruby environment with your Rails application's context-loaded
-reload! = reload the application's code without exiting the console
Posted on June 4, 2024
Join Our Newsletter. No Spam, Only the good stuff.
Sign up to receive the latest update from our blog.