sublime设置sublimeREPL-python-run current file 快捷键

转载于:https://www.cnblogs.com/jieperhaps/p/10559565.html

方法:

首选项->快捷键设置

填写如下内容

// sublime设置sublimeREPL-python-run current file 快捷键
[
{
	"keys": ["ctrl+b"], "command": "repl_open",
	 "caption": "Python - RUN current file",
	 "id": "repl_python_run",
	 "mnemonic": "d",
	 "args": 
	 {
    "type": "subprocess",
    "encoding": "utf8",
    "cmd": ["C:\\Users\\giova\\AppData\\Local\\Programs\\Python\\Python37-32\\python.exe", "-u", "-i", "$file_basename"],
    "cwd": "$file_path",
    "syntax": "Packages/Python/Python.tmLanguage",
    "external_id": "python",
    "extend_env": {"PYTHONIOENCODING": "utf-8"}
    }
}
]

注意:cmd中的路径,修改为你本机python.exe文件路径

保存后,重新启动就可以了
在这里插入图片描述这个两行显示,是在视图–》布局–》行 2 选择的,也可以选择列2

实测可行。

转载于:https://www.cnblogs.com/jieperhaps/p/10559565.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值