Opening Files from Command Line
You can open an arbitrary file, folder, or project for editing in CLion from the command line, optionally specifying where the caret should rest after opening the file.
In the command line, run the following command:
The command options are as follows:
| || |
The platform-specific CLion launcher.
On macOS and Linux, it is recommended to use the command-line launcher created during the CLion installation, or create one manually by selecting on the CLion main menu. Refer to Enable a command-line launcher on macOS/Linux for details.
| || |
The path to the file or the folder to be opened.
(optional) The line number, on which the caret should rest after opening the file.