100 tips for developers. Hopefully most will be obvious. Suggestions welcome.
## Tabbed apps (Chrome/Firefox/iTerm etc)
-
cmd-nto select a particular tab, wherenis 1-8 (cmd-9to select last) -
cmd-+,cmd--to zoom in and out (cmd-0to restore the zoom level to 100%) -
ctrl-tabto select next tab to right (addshiftto go left) -
Resume remote sessions using
screen -
Time long command with
time -
Symlink your dotfiles (
.vimrcetc.) to Dropbox / Google drive for consitent settings across devices (company?) -
Search your command history with
ctrl-rand start typing the command -
ctrl-spaceto suggest alternatives using code-complete -
Select suggestion with
enterto insert, ortabto overwrite -
shift shiftto open the search box. Type the first few letters of each part to search, eg. "nullpoiexcep" -
"sout"+tabto insertSystem.out.println(); -
alt-clicknew multicursor -
alt-shift-downduplicate line -
On macOS, press
alt-]oralt-shift-]to get typographic apostrophes‘and’ -
Use
cmd-tabto toggle between open apps -
Use
cmd-`to toggle between multiple windows of current app -
Keep system clean by using package manager like
homebrew -
cmd-spaceto open spotlight search -
Press
cmdwhen looking at spotlight search results to show location of result -
Hold
cmdwhen clicking spotlight result to show in finder rather than with default app -
In display settings, hold
altwhen clickingscaledto see full list of resolution options -
In Finder, in column view, hold
altwhen adjusting width to adjust all simultaneously -
In Finder,
shift-cmd-.to toggle hidden files/folders -
In Finder,
shift-cmd-pto show breadcrumb trail -
Got a release to do but have some local changes (some needed, some not). Commit the ones you need and
git stashthe rest. Get them back after withgit stash applyor check whats stashed withgit stash list. -
Enable colour:
git config --global color.ui auto -
In browser address bar, press
ctrl-enterto surround word withwww.and.com -
Many websites show a keyboard shortcut cheatsheet when you press
?(eg. gmail, twitter, github) (cmd-/in Slack) -
Highlight a word with a double-click. Highlight the line with a triple-click
-
Step through gmail threads with
jandk. Step through emails within a thread withbandp -
Keep lots of bookmarks within easy reach using the bookmarks bar. Remove any text to leave just the favicon
-
Choose workspace is like choosing tabs:
cmd-nto select a particular workspace, wherenis number -
Switch channel
alt-uporalt-down -
When in "All Unreads", marks all as read with
r
Ok, I haven't thought of 100 yet, please help! -Matt