0

I'm looking at a video and the Terminal in WebStorm looks like this

As you can see there is an autocompletion suggestion while he's writing the command. Any clue on how to get this feature?

Here's the video: Creating Demo APIs with json-server

To clarify: You see the red part is what the user typed and the gray is the suggestion. I would like to have the suggestion.

  • Normally you can get auto-complete when you press tab-key. I Don't know if this also works in webstorm – Jules Feb 14 '17 at 15:17
  • yes it does, but the feature is actually kinda different. You see the red part is what the user typed and the gray is the suggestion – steo Feb 14 '17 at 15:22
  • Perhaps this is what you need? blog.jetbrains.com/phpstorm/2013/07/… – Jules Feb 14 '17 at 15:51
  • @Jules, How does PhpStorm, in your last comment, provide the IDE Terminal auto-completion feature to macOS Terminal? All your suggesting is a different IDE then the one show in the OP and that's not what steo is asking for. – user3439894 Feb 14 '17 at 16:11
  • @user3439894 oops my bad. – Jules Feb 14 '17 at 16:13
5

You can use the zsh shell with the zsh-autosuggestions plugin.

2

This screenshot looks very much like the fish shell. This is an alternative shell to bash. One of its core features is smart auto-completion.

Alternatively you could use homebrew to install auto-completion for bash:

brew install bash-completion

You will have to press tab to complete the command you are currently typing. Press twice for all options -- if no unique completion exists.

1

You can get a somehow similar behavior by hitting ctrlR in Terminal. The command invokes a reverse search in your bash history file.

Example:

After entering d and hitting the shortcut, I get diskutil info disk1s2

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .