atom-shell-commands icon indicating copy to clipboard operation
atom-shell-commands copied to clipboard

how to runing the code in a new windows?

Open three1bro opened this issue 8 years ago • 6 comments

i saw the describe about 哇 英语差有点难受 我可以配置编译和execute 但是在新窗口运行那一块出了点问题 就是在配置文件写好了以后 我该怎么做 是要写一个launch.cmd 文件吗 还是在cmd里直接运行那些source

three1bro avatar Sep 05 '17 07:09 three1bro

windows 的话,options 下面支持,mode 字段,设置 mode 为 “terminal" 即可新窗口运行

skywind3000 avatar Sep 05 '17 07:09 skywind3000

commands: [ { name: "runinwindow" command: "cmd" arguments: [ "/C" "start" "C:/Users/Administrator/AppData/Local/atom/launch.cmd" "{FileNameNoExt}" ] options: cwd: "{FileDir}" mode:"terminal" keymap: 'ctrl-2'

具体字段是这样子 调用的话会弹窗说找不到launch.cmd

three1bro avatar Sep 05 '17 08:09 three1bro

你检查下插件目录下 vendor/launch.cmd 存在不?不存在的话从仓库里拷贝一份过去

skywind3000 avatar Sep 05 '17 09:09 skywind3000

如何在编译的同时保留.o文件和exe文件呢 具体点就是做到ctrl1编译 ctrl3运行

three1bro avatar Sep 06 '17 06:09 three1bro

你可以写个批处理 .cmd 文件,然后配置成一个命令

skywind3000 avatar Sep 06 '17 08:09 skywind3000

可以具体点吗 完全是小白 我看您留的截图上面多了一些东西 是不是就是那些东西的问题

three1bro avatar Sep 06 '17 09:09 three1bro