从命令行(终端)启动 Pycharm [英] Launch Pycharm from command line (terminal)
问题描述
我想尝试使用 PyCharm 进行 sage 数学开发.平时我用eclipse做sage开发,现在想用PyCharm试试.
I want to try out PyCharm for sage mathematics development. Normally I run eclipse to do sage development, but now I want to try it with PyCharm.
要使用 sage 环境变量启动 eclipse,我通常在命令行中执行以下操作:
To launch eclipse with sage environment variables, in command line I normally do the following:
sage -sh
cd /path/to/eclipse
./eclipse
第一行加载 sage 环境变量,其余行启动 eclipse.我怎样才能为 pyCharm 做同样的事情?(请注意,我使用 Mac 和 Ubuntu 进行 sage 开发;上述命令对两种操作系统都不可知)
The first line loads the sage environment variables, the remainder launches eclipse. How can I do the same thing for pyCharm? (note I am using a Mac and Ubuntu for sage development; the commands above are agnostic to both OSes)
- Link 1 is close to the solution I am looking for, however I cannot find a pyCharm.sh anywhere.
- Link 2: Jetbrains does not give clear instructions either.
推荐答案
编辑(2020 年 4 月):现在似乎在 Toolbox App 设置中管理启动器脚本创建.请参阅工具箱应用公告 了解更多详情.
Edit (April 2020): It seems that launcher script creation is now managed in Toolbox App settings. See the Toolbox App announcement for more details.
--
- 打开应用程序 Pycharm
- 在菜单栏中查找工具
- 点击
创建命令行启动器
- 查看在
/usr/local/bin/charm
中创建的launcher可执行文件 - 打开项目或文件只需输入
$char YOUR_FOLDER_OR_FILE
- Open Application Pycharm
- Find tools in menu bar
- Click
Create Command-line Launcher
- Checking the launcher executable file which has been created in
/usr/local/bin/charm
- Open project or file just type
$ charm YOUR_FOLDER_OR_FILE
也许这就是您所需要的.
Maybe this is what you need.
这篇关于从命令行(终端)启动 Pycharm的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!