策略编辑不支持Linux
laowalter opened this issue · 2 comments
laowalter commented
- ui/widget.py 中建议增加Linux环境判断,获得系统default editor;
- line 515, 在Linux中测试 subprocess.run(cmd, check=True) 可以,但是 subprocess.run(cmd, shell=True)就看不到当前编辑的文件了。
vnpy commented
感谢反馈,我们来检查下
vnpy commented
请参考这篇Stackoverflow内容,将VSCode安装到命令行启动中试试。
https://askubuntu.com/questions/852076/how-to-open-visual-studio-code-using-terminal
Correct way is to open Visual Studio Code and press Ctrl+Shift+P on Windows (or Cmd+Shift+P on Mac) then type Install 'code' command in PATH . At some point you should see an option come up that lets you install shell command, click it. Then open a new terminal window and type code.