Boost Your Workflow: VS Code & Terminal Essentials
Source: Dev.to
Reopen a Pane
Sometimes you accidentally close the explorer (left pane) or the terminal (bottom pane). You can reopen them with these keyboard shortcuts:
- Left pane (Explorer):
Ctrl + B(Windows) /⌘ + B(Mac) - Bottom pane (Terminal):
Ctrl + J(Windows) /⌘ + J(Mac)
Alternatively, click the hamburger menu (top‑left) → View → Explorer or Terminal to reopen the pane.
Clear Terminal
- Mac:
⌘ + K - Windows:
Ctrl + K
Interrupt Program
Ctrl + C
Command Palette
- Mac:
⌘ + Shift + P - Windows:
Ctrl + Shift + P
Quick Open File
- Mac:
⌘ + P - Windows:
Ctrl + P
Type part of the file name to fuzzy‑search.
Example: typing phco quickly narrows the list to photos_controller.rb.
Rails Console
What does the rails console command do?
(Answer not provided in the original content.)
Why would you use the reload! command in Rails console?
To reload the application’s code without exiting the console.