Opening Files from Command Line
Opening a file in the editor
PyCharm helps opening a file for editing so that the caret rests at the specified line.
To open a file for editing
Examples
Windows
PyCharm.exe C:\SamplesProjects\MetersToInchesConverter --line 3 C:\SamplesProjects\MetersToInchesConverter\src\javascript\numbers.js
macOS
/Applications/PyCharm.app/Contents/MacOS/pycharm ~/PyCharmProjects/untitled45 --line 1 ~/PyCharmProjects/untitled45/sample.sass
Linux
~/jetbrains/PyCharm-2017.2.1/bin/pycharm.sh ~/PyCharmProjects/test_project/ --line 2 ~/PyCharmProjects/test_project/sample.xml
Last modified: 26 October 2017