atom-editor - Atom如何运行包含空格的文件
问题描述
我正在尝试使用atom-python-run
在 Atom 中运行 python 文件。可悲的是,我的文件存储在名称中包含空格的文件夹中,我无法更改它,因此atom-python-run
无法运行此文件。由于我对javascript的了解很少,我试图修复它来改变它:
args.forEach((item, index, arr) => {
arr[index] = format(item, {
'file': editor.buffer.file.path,
'dir': info.dir,
'name': info.name,
'ext': info.ext,
});
});
进入这个
args.forEach((item, index, arr) => {
arr[index] = format(item, {
'file': editor.buffer.file.path.split(' ').join('\\ '),
'dir': info.dir,
'name': info.name,
'ext': info.ext,
});
});
但是现在当我按 f5 时它什么也不做。有什么方法可以像在其他 python IDE 中一样以非常简单的方式运行文件(也许不使用atom-python-run
)?我尝试使用script
但不幸的是它不接受输入。
解决方案
推荐阅读
- java - 同一服务器上的两个项目具有不同的端口但客户端(Angular 6)无法调用服务器(Spring Boot)
- java - Surefire 插件 > 2.19 版和 junit 套件
- powershell - PowerShell:如何将黑名单作为 Get-ChildItem -Exclude 标志的命令参数传递
- php - 选择哪个 php.ini 作为配置文件?
- php - 使用 gettext 翻译文本时出现问题
- vba - Excel VBA 创建指向同一单元格的超链接
- makefile - 用于构建库的旧 Makefile 不再适用于 FreeBSD
- angular - 反应式表单确认密码和确认电子邮件验证器角度 4
- r - 在宽矩阵上意外计算时如何防止 rsession 崩溃
- java - 映射Java8的字符串列表