AppCode 2023.1 Help

Open files from the command line

Open an arbitrary file or folder in AppCode from the command line, optionally specifying where to put the caret after opening.

By default, AppCode does not provide a command-line launcher. For information about creating a launcher script for AppCode, see Command-line interface.

appcode --line <number> <path>

Open a project:

appcode ~/MyProject

Open a specific file on line number 42:

appcode --line 42 ~/MyProject/scripts/numbers.js

When you specify the path to a file, AppCode opens it in the LightEdit mode, unless it belongs to a project that is already open or there is special logic to automatically open or create a project (for example, in case of Maven or Gradle files). If you specify a directory with an existing project, AppCode opens this project. If you open a directory that is not a part of a project, AppCode adds the .idea directory to it, making it a project.

Last modified: 20 May 2022