Sublime Forum

Convert a build file of sublime to task.json file of vs code

#1

I have a build file of sublime and i am struggling to convert it to task.json file of vs code please help:
{
“shell_cmd”: “g++ “${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”,
“shell_cmd”: " python /home/piyush/Documents/CPHelper/Main.py"${file_path} /${file_base_name}""
}
]
}

0 Likes