CLion
 
Get CLion
Join the CLion 2025.1 Early Access Program and try out new features before they are released! Find out more

Shell scripts

Last modified: 28 June 2024

CLion provides coding assistance for shell script files: code highlighting, word and path completion, quick documentation, and textual rename:

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

Shell scripts support also includes a special type of run/debug configuration.

To enhance shell scripts support, CLion integrates with the following external tools:

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

  • Shfmt is an external formatter engine for shell scripts. CLion 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.