DEV Community

Chan
Chan

Posted on

Hot Keys on Mac

Since I switched over to Mac, Hot keys(Shortcut keys) are confusing and easy to forget. To stop making mistakes, here I wrote a list of frequently used combinations of keys.

Visual Studio Code

Integrated Terminal

  • Command + `: Toggle the integrated terminal
  • Control + Shift + `: Create a new terminal instance
  • Command + Backspace: Kill terminal instance

Run commands

  • Command + P: Go to File
  • Command + Shift + P: Open the Command Palette

Tabs

  • Command + T: Create a new tab
  • Command + W: Close tab

Search

  • Command + F: Find in the current file
  • Command + Shift + F: Replace in files
  • Command + Option + Enter: Replace all occurrences with the given expression across all files
  • Command + D: select the next occurrence

Change occurrences

  • Command + Shift + L: Change all occurrences in a file
  • Command + Shift + H: Change all occurrences in all files

Move the cursor

  • Option + Left Arrow: Move the cursor to the previous word
  • Option + Right Arrow: Move the cursor to the next word
  • Command + Left Arrow: Move the cursor to the beginning of the line
  • Command + Right Arrow: Move the cursor to the end of the line

Terminal

  • Command + K: Clear Terminal

Rectangle

  • Control + Option + Left Arrow: Move the current window to the left half
  • Control + Option + Right Arrow: Snap the current window to the right half

System

  • Control + Command + F: Toggle full-screen mode
  • Control + Left Arrow: Move to the full-screen app on the left side
  • Control + Right Arrow: Move to the full-screen ap on the right side

ChatGPT

  • Option + Space: Toggles chatting bar
  • Command + Space: Spotlight Search

Chrome

  • Option + Command + I: Toggle Devtools
  • Command + R: Refresh the page(normal refresh)
  • Command + Shift + R: Refresh the page(hard refresh) - The key clears the browser cache.

AWS Security LIVE!

Join us for AWS Security LIVE!

Discover the future of cloud security. Tune in live for trends, tips, and solutions from AWS and AWS Partners.

Learn More

Top comments (0)

AWS Security LIVE!

Tune in for AWS Security LIVE!

Join AWS Security LIVE! for expert insights and actionable tips to protect your organization and keep security teams prepared.

Learn More

👋 Kindness is contagious

Dive into an ocean of knowledge with this thought-provoking post, revered deeply within the supportive DEV Community. Developers of all levels are welcome to join and enhance our collective intelligence.

Saying a simple "thank you" can brighten someone's day. Share your gratitude in the comments below!

On DEV, sharing ideas eases our path and fortifies our community connections. Found this helpful? Sending a quick thanks to the author can be profoundly valued.

Okay