Closed max2max closed 4 years ago
Does build system not work for you?
Sometimes it'll be convenient to customize the task for each project. Build system select for file suffix, while the task work for project, and i think that's the point.
You could also have project wise build systems.
Alright
1. Task Feature
I think it's a great idea to add support for task since you may run different commands for different projects respectively. I've achieved this idea by using the plugin https://github.com/mgutski/sublime-run-task. For example, set your run task in
<project-name>.sublime-project
file as bellow:and press ctrl + shift + p, search
Run Task
, enter then you will find these two tasks.2. Cygwin/Msys Tips
Here provide an setup to create cygwin bash at the dir of the current file i think it's very useful
Context.sublime-menu
ps:
bash -c
means execute command and exit, and-c
is the only way to pass command we need to run, so we runbash -i
withinbash -c
Here we need '--login' for two times, that's because with 1 time you can't get path worked so you will get 'command not found error' for both windows and msys commands. And i don't know why.
In vscode you need
--login
noly 1 time.