We use our computers a lot. It pays to take some time to learn how to use them even just a little bit more efficiently. In general one way to be more efficient is to use your mouse less and your keyboard more, hence keyboard shortcuts. Yes, they can be pain to learn, but once you learn them it becomes worth the investment.

Below I’ve written out some tips that I’ve picked up and I use every day, if not every hour, on my MacBook. This post is aimed at general computer users, not specifically programmers. You may know about some of them, but hopefully there a few new ones for you.

Command + Tab and Command + `

You may know this one: Use Command + Tab to switch between open applications. While holding down Command, hit Tab to advance on program. Hit ` to go back one program (Hint: ` is the key above tab).

You can also use Command + ` to cycle through windows of the same application. So say I have two Chrome windows open– Command + ` will switch between them.

Google Chrome Tips

Tab Navigation

Within Google Chrome you can use Command + Shift + [ to move left one tab and Command + Shift + ] to move forward one tab.

Alternatively, you can use Command + a number to move to that tab. So let’s say you have 6 tabs open and you want to move to the third one from the left. Just use Command + 3. Note: Command + 9 always moves to the right-most tab.

Other Chrome Keyboard Shortcuts

Command + l takes you to the address bar and highlights all the text there. Really useful when you want to copy/paste the URL you’re on Command + r refreshes current tab. Command + w closes current tab Command + shift + w closes the current Chrome window and all the tabs in it. Command + t opens a new tab Command + shift + t re-opens the last tab you closed (helpful if you closed a tab by accident)

Note: Sometimes when I try to do Command + w I’ll hit Command + q by accident, which quits Chrome (bummer). To prevent these accidents, you can go into Chrome’s main drop-down menu (the one that says Chrome at the top, just to the left of File) and select the option “Warn Before Quitting”).

Pinned Tabs

Another helpful Chrome trick I’ve found is the ability to pin a tab. This works well for tabs you want to keep open for a long amount of time (think GMail or Twitter.com). To pin a tab, just right-click the tab and select “Pin Tab”. The tab will anchor to the left of the window and its “title” will not be displayed. Also, you can’t close it with your mouse until you unpin it (although Command + w will close it).

Some Chrome Extensions I’ve Found to Be Useful

One Tab

If you have way too many tabs open (lol who doesn’t amirite?), you can click on this extension’s icon and it will close all the tabs in the window and replace them with a single page with links to all the tabs it just closed. You can then re-open only the ones you still need.

GIF ME

This little extension is a good way to keep a handful of gifs on hand for whenever you need to get a link to that Game of Thrones one quickly.

Screen-shotting

OS X has screen-shotting built in: Command + Shift + 4 let’s you select an area of your screen and make an image. it will automatically save the image to your desktop.

An alternative to this method is an application called Glui. The two advantages Glui has over the Command Shift 4 method is that (a) you can add arrows and text to your screen shot right in Glui and (b) You can connect your Dropbox account and, with one click, upload the image to Dropbox and get the URL copied to your clipboard.

Better Touch Tool

This program is a little more advanced, but once you get the hang of it you’ll wonder how you used a computer without it.

Say you want to quickly maximize a window? Sure you can hit the green button, but the keyboard is always quicker. Or how about “maximize this window on your other monitor”? Or quickly make a window take up just the left or right half of your current screen?

There are a few programs that do this kind of window management. Moom is a popular $10 option, there’s also Divvy. I use a free one called Better Touch Tool, which does window management as well as a bunch of other cool things.

Basically Better Touch Tool let’s you create custom shortcuts to do “actions” (among them , window management actions as I described above). The shortcuts can be keyboard shortcuts (Command + Control + left arrow) or gestures on your MacBook’s touch-pad or Magic Mouse.

When you install the program there are no shortcuts set up for you.

To give you some examples, here are my current Better Touch Tool shortcuts:

BBT shortcuts

So the interface for setting up new shortcuts is a bit wonky, but the good news is you really only have to do it once. To add a new shortcut, click the “+ Add New Shortcut” button in the bottom right. Then, if you’re setting up a keyboard shortcut, click in the rounded textbox on the bottom of the screen to record the shortcut. Then you’re going to assign a “Predefined Action” for that shortcut to trigger. Done.

I have Control + Command + arrows set to move the current, or active, window. (The ^ symbol means Control, so all of my controls start with Command + Control.) ‘Left’ moves it to the left half of the monitor, ‘right’ to the right half, ‘up’ maximizes it, and ‘down’ returns it to its original size (“Restore Old Window Size”). Since I use an external monitor, I set Control + Command + = to maximize on the other monitor, and Control + Command + - to simply have it switch monitors (which would basically undo the “maximize on the other monitor” action).

Alfred

If you want to take your war on mouse usage to the next level, you should check out Alfred (free for the basic version, 17 British pounds for full version).

At it’s most basic, Alfred is an application launcher. First, you setup a keyboard shortcut to open Alfred (I use Option + Enter). Then to open, say, TweetDeck you call Alfred with your shortcut, type in “tweetdeck” and hit enter. Boom, Tweetdeck opens.

What’s really great about this method of opening applications is that you’ll rarely ever need to use the OS X dock of applications. Thus you can set that to hide, so when you use Better Touch Tool to maximize your window, the window can take up your whole screen and you won’t miss the OS X dock.

Alfred’s full version (called the “Powerpack”) has tons of features. One that I like is clipboard history. I have it set so when I hit Alt + v I get a menu with the last 10 things I put on my clipboard, all available for me to paste.