![]() ![]() You can also change the interpreter for running the script and additional options for the interpreter.Ĭlick OK to save the run/debug configuration. Specify the path to the script file and options that you want to pass to the script when it is launched. Under Execute, select the Script file option. If you create a Shell Script run/debug configuration for a script file, CLion will use the interpreter specified in the Interpreter path field of that configuration. If you run a script from the gutter icon and do not specify the shebang in your script, CLion will use your default system interpreter defined by the SHELL environment variable. If you want to customize the startup of your script (for example, specify the script and interpreter options), you can also create a Shell Script run/debug configuration. This will run your script in the built-in Terminal. 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 ( Control+Alt+S), select Editor | File Types. However, you can configure CLion 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, CLion recognizes files with the following extensions as shell scripts. ![]() CLion will suggest installing it when you reformat code Control+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. CLion 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. To enhance shell scripts support, CLion integrates with the following external tools: ![]() Shell scripts support also includes a special type of run/debug configuration. CLion provides coding assistance for shell script files: code highlighting, word and path completion, quick documentation, and textual rename: ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |