DataGrip
 
Get DataGrip
You are viewing the documentation for an earlier version of DataGrip.

Shell Script

Last modified: 26 October 2023

DataGrip provides coding assistance for shell script files: completion (including local paths), highlighting, , textual rename refactoring, and more.

https://resources.jetbrains.com/help/img/idea/2023.2/cl_shellscript_assistance.png
Gif

It also includes a special type of run/debug configurations for shell scripts.

DataGrip integrates with several external tools to enhance shell script support:

  • ShellCheck is a shell script static analysis tool that can detect syntax errors, semantic problems, corner cases, and typical pitfalls. DataGrip will prompt you to install it if it is not available.

  • Shfmt is an external formatter engine for shell scripts. DataGrip will suggest installing it when you reformat code CtrlAlt0L of the shell script for the first time.

  • Explainshell is a website that can parse any shell command and provide help text for each argument. Access to it is available via an intention action: press AltEnter and select Explain shell.