Being More Productive by using the Keyboard vs. the Mouse
Launching Apps with Spotlight
- Developers avoid using the mouse whenever possible
- Developers are more productive when their hands are on the keyboard
-
Open applications using Spotlight instead of the mouse by:
- Pressing
cmd+space
to open Spotlight - Start typing the name of the app until the app is highlighted
- Press
enter
to open the app!
- Pressing
Switching Between Applications
- Quickly switch between running applications by pressing
cmd+tab
-
If a minimized applications does not display after tabbing to it with
cmd+tab
:- Continue to hold down
cmd
and releasetab
- Press
option
then releasecmd
- Continue to hold down
Switching Between Instances of an Application
- You can switch between multiple windows of the same application using cmd+` (that's a back-tick character, which is above the
tab
key) - Note that it's best to minimize how many windows/applications you have open when developing to make switching between applications quicker and minimize distractions to the job at hand
Uploading Screenshots and Images to imgur.com
Why Upload Images?
- Often you will need to share images with others or use them in your applications, notes, readme files, etc
- Unfortunately, if an image exists only on your computer, you lose the ability to use it anywhere but on your computer
- The solution is to upload images to a cloud service...
Imgur
- One of the most popular image hosting services on the Internet is Imgur.
- Go there now and open a free account
- Although you can upload images using Imgur's web interface, but there's a better way...
mac2imgur
- mac2imgur is a simple Mac app that makes uploading images and screenshots to your Imgur account a snap
- Go to the link above and download/install it
- After installed, launch it, click the in your menubar, then select
Imgur/Sign-in
. Note that if you don't sign in, your uploaded images will be uploaded to Imgur's public domain - You can now upload images from your computer by clicking the mac2imgur icon in the menubar and selecting
Upload images...
- Screenshots can also now be automatically uploaded to Imgur...
Screenshots
-
The following keyboard shortcuts can be used to take screenshots of your screen:
- Whole screen:
shift-cmd-3
- Part of your screen:
shift-cmd-4
- A certain window:
shift-cmd-4
, thenspacebar
to toggle window mode
- Whole screen:
Using Spectacle to
Move and Size Windows
What is Spectacle?
- Spectacle is a free utility that resizes and snaps into position app windows
- If you don't see the "spectacles" in your menubar, launch Spectacle using Spotlight
- When running, Spectacle will listen to the keyboard for certain key combinations (hotkeys) and will resize/position the active application accordingly...
Spectacle's Basic Default Hotkeys
-
Here are the most popular hotkeys:
- Make window full-size —
opt + cmd + F
- Move to the left half —
opt + cmd + ←
- Move to the right half —
opt + cmd + →
- Move to the top half —
opt + cmd + ↑
- Move to the bottom half —
opt + cmd + ↓
- Make window full-size —
- Pressing the same hotkey will size the window by thirds!
- You can find more info about Spectacle here.