Sublime Forum

How to run the C with terminal automatically?

#1

Hello, I’am a user from China.
My English is poor,and it’s my frist to post for help.
I hope you can understand it…

How can I bulid a new system to run the C when i need to input something?

{
"cmd": ["gcc", "${file}", "-o", "${file_path}/${file_base_name}"],

"file_regex": "^(..[^:]*):([0-9]+):?([0-9]+)?:? (.*)$",
"working_dir": "${file_path}",
"selector": "source.c, source.c++",

"variants":
[
{
"name": "Run",
"cmd" : ["${file_path}/${file_base_name}"]
}
]
}
```````````````````````````````````````````````
I hope that it can pop the termain with the command "./ file_name".
you know , use the terminal.

but .... I don't how to do it.

it just finish it and i must run 'a.out' using terminal and I must input "./file_name" manually,it is very so sad.

I hope can finish it automatically as soon as I press down "command+b".

otherwise,I had finished plug-in"intermal".

thanks for your help and i love the software.
0 Likes

#2

https://packagecontrol.io/packages/Console%20Exec

1 Like

#4

You may also interest in this patch.

0 Likes