
When working on a shell script file, click in the gutter. In the Recognized File Types list, select Shell Script and add the necessary patterns in the File Name Patterns list below. In the Settings dialog ( Ctrl+Alt+S), select Editor | File Types. However, you can configure IntelliJ IDEA to recognize any file types as shell script files (for example, if you want to edit. Access to it is available via an intention action: press Alt+Enter and select Explain shell.Ĭonfigure file types to be recognized as shell scriptsīy default, IntelliJ IDEA recognizes files with the following extensions as shell scripts.

IntelliJ IDEA will suggest installing it when you reformat code Ctrl+Alt+L of the shell script for the first time.Įxplainshell is a website that can parse any shell command and provide help text for each argument. Shfmt is an external formatter engine for shell scripts. IntelliJ IDEA will prompt you to install it if it is not available. ShellCheck is a shell script static analysis tool that can detect syntax errors, semantic problems, corner cases, and typical pitfalls.

IntelliJ IDEA integrates with several external tools to enhance shell script support:

It also includes a special type of run/debug configurations for shell scripts. IntelliJ IDEA provides coding assistance for shell script files: completion (including local paths), highlighting, quick documentation, textual rename refactoring, and more.
