Terminals · JetBrains IDEs
JetBrains IDE terminal autocomplete: IntelliJ IDEA, PyCharm, WebStorm
Last checked 19 November 2026
In short: Termhint adds its zsh autocomplete popup to the Terminal tool window of JetBrains IDEs on a Mac: IntelliJ IDEA, PyCharm, WebStorm, GoLand, CLion, Rider, RubyMine, PhpStorm, DataGrip and RustRover. It needs the Accessibility permission. The same popup then works in your other terminals too.
Set up autocomplete in IntelliJ IDEA, PyCharm or WebStorm
- Download Termhint, move it to Applications and open it. On launch it adds one marked block to
~/.zshrc, backed up first. - Allow Termhint in System Settings → Privacy & Security → Accessibility. Termhint shows macOS's prompt on first launch, and notices the change without a restart (permissions).
- Make sure the IDE's terminal runs zsh, the default shell on macOS, and open a new terminal tab in the Terminal tool window.
- Type
git checkout. The popup lists your branches, such asmainandfeature/login; Tab, the arrows, Esc and Enter go to it only while it is open.
Examples in a JetBrains project
npm runin WebStorm lists the scripts of yourpackage.json;./gradlew -in an IntelliJ IDEA project lists Gradle's options.makelists the Makefile's targets with their##help (Makefile targets).git push originlists branches;git stash poplists stashes (Git autocomplete).sshlists hosts likestaging-dbfrom~/.ssh/config(ssh hosts); Docker commands list containers such asapi(Docker).
Termhint reads branches, hosts and containers itself; it never runs git, ssh or docker for this. Completions come from bundled specs for 3,272 commands, the zsh completion functions on your Mac and, for the rest, the options in a command's man page.
How Termhint finds the cursor
The Terminal tool window exposes its text to macOS's accessibility API, and Termhint reads the cursor from it. JetBrains IDEs keep no blank cells after the cursor, so at the end of the line Termhint places it right of the last character.
Limits in JetBrains IDEs
- Needs Accessibility.
- The popup can sit one cell left of the word.
- Tested in IntelliJ IDEA 2026.3.
- Termhint does not set icons in JetBrains IDEs; with
--glyphs autothe prompt there uses standard symbols. - zsh only, Apple silicon, macOS 14 or later. Not inside GNU screen.
Not working?
- Check Accessibility for Termhint. If it shows as on and the panel still asks for it, remove it with − and allow it again.
- Open a new terminal tab after installing; the shell in the tool window must be zsh.
- The panel under Termhint's menu-bar icon shows whether autocomplete is on, the one step left if it is not, and the terminal tabs connected.
- Esc hides the popup until the line changes.
More fixes: terminal autocomplete not working and troubleshooting. Also using VS Code? See VS Code and its forks.
FAQ
Which JetBrains IDEs are supported?
IntelliJ IDEA (Ultimate and Community), PyCharm (Professional and Community), WebStorm, GoLand, CLion, Rider, RubyMine, PhpStorm, DataGrip and RustRover. The popup works in their Terminal tool window.
Why does it need Accessibility in a JetBrains IDE?
Termhint finds the cursor in the Terminal tool window's text, which macOS hands out only to apps with the Accessibility permission.
Why does the popup sit one cell to the left?
JetBrains IDEs keep no blank cells after the cursor, so at the end of the line Termhint places it right of the last character. The popup can sit one cell left of the word.
Which version was tested?
IntelliJ IDEA 2026.3. The other IDEs are recognized by their app identifiers.