I am using "Linux Centos-7" and here I am installing "SublimeText-3". The C-C ++ code is running fine in the Sublime Text Console but I want to run those code in the Linux terminal. I have included some queues like SublimeText build system -
{"shell_cmd": "g ++ -std = c ++ 11 \" $ {file} \ "-o \" $ {File_path} / $ {file_base_name} .exe \ "", "file_regex": "^ (.. [^:] *): ([0- 9] +):? ([0- 9] +): "{{Name}:". (. *) $ "," Working_dir ":" $ {file_path} "," selector ":" source.c, source.c ++, source.cpp "," variant " Run "," Shell_cmd ":" g ++ \ "$ {file} \" -o \ "$ {file_path} / $ {file_base_name} \" "}}}
above The code only has one executable file. Which I have to run manually in the terminal
and,
{"cmd": ["g ++", "$ file", "-o", "$ {File_path} / $ {file_base_name}", "File_regex": "^ (.. [^:] *): ([0- 9] +):? ([0- 9] +)?:? (? *) $ "," Work_urd ":" $ {File_path} "," selector ":" source.c, source.c ++, source.cxx, source.cpp "," variants ": [{cmd "": "{{Name}:" run "," shell ": true" ":" "{" name "}": "g ++ \" $ {file} \ "- o" \ "$ {file_path} / $ {file_base_name} \", "variant" Is "CMD": ["gnome-terminal -e 'bash - c \" $ {file_path} / $ {file_base_name}; Echo; Echo; Press ENTER to continue the buzz; Read the line; Exit; This code can only run existing files in the terminal. Now, I just want to write code in SublimeText. "
Thanks
I It was in those days that after establishing grandeur some days ago I researched the situation for a while and ended up with "$ {File_path} / $ {file_base_name}"], "File_regex": "^ (.. [ ^:] *): ([0-9] +):? ([0- 9] +):? ("*; $)", "Working_direct": "{{" name ":" run "," cmd ": [" $ {file_path} "," selector ":" source.c, source.c ++, source .cxx, source.cpp "," variant "Bash", "-c", "g ++ -std = c ++ 0x '$ {file}' -o '$ {file_path} / $ {file_base_name}' and & Amp; Xterm-e bash -c '$ {file_path} / $ {File_base_name}; Read '']}]}
You may also need to install extras
No comments:
Post a Comment