Orginally published at Medium on Dec 16th 2020.
Are you looking to become a better developer by creating an empowering digital workflow? iTerm2 will help you to make the most of your day behind the keyboard. It’s the terminal that has all the functionality a developer ever wished for.
The guide below will help you to:
- Download and install iTerm2
- Set up a hotkey shortcut — Double tab option ( ⌥)
- View timestamps
- Highlight and comment on logs
- Autocomplete — Command (⌘) plus semicolon (;)
- Click links from the terminal — Command (⌘) plus click
- Focused troubleshooting
At first, it seems like the native terminal on a Macbook Air or Macbook Pro comes with all the functionality you need — that is, until you discover that there are much more powerful alternatives than the default Mac terminal.
As developers, we engage in a high number of repetitive tasks during a given day. A craftsman needs the right tools to build, and so do we. Any change that enables us to work a little smarter, a little more efficiently, will have a significant impact on our developer productivity. All the few seconds here and there end up to countless hours over and over again.
iTerm2’s tagline is “the features you didn’t know you’d love.” And that’s indeed a pretty accurate way to describe it. Your terminal, together with your IDE, is the backbone of writing applications and code. The goal is to make coding as enjoyable as possible by optimizing how you work, by having a smooth transition from one workflow to another.
Even the simplest of tools can empower people to do great things.
Below is an overview of a minimal setup for some of iTerm2's most-loved features. If, after reading this guide, you’d like to know more, check the official iTerm2 documentation for other powerful ideas to boost your productivity.
1. Download and Install iTerm2
The terminal window will pop up as the full width of your screen with a slightly transparent background. This makes it possible for you to read what’s behind the terminal, useful when you’re watching a video with setup instructions. By double-tapping the hotkey again, the terminal window minimizes and you go back to the editor or website you were working in.
Go to Preferences > Keys > Hotkey > Create a Dedicated Hotkey Window
Great, you are set up! Now close and restart your iTerm2 editor. By double-tapping the option key, the editor will appear from the top of your screen.
When the terminal window is opened, you can press the combination Command (or Cmd) ⌘ + Enter to make the window full-screen size.
Troubleshooting log files can be complex and hard. The lines of code to read in a log can be overwhelming. Help yourself and your teammates by highlighting and commenting on sections to resolve your bugs more quickly.
Press the Command key (⌘) and semicolon (;) at the same time to autocomplete terminal actions performed earlier.
No need to copy a link, manually open the browser, and paste the link. You can easily click any link or file within your terminal and be redirected automatically.
If you are overwhelmed by the number of logs, you can isolate part of the code. Inspect part of the terminal output by selecting the code followed by Command (⌘) plus Option ( ⌥) plus Z. The selected code is now visible in a new tab window. Press Escape to exit and return to the main editor window.