sublime配置c++环境
生活随笔
收集整理的這篇文章主要介紹了
sublime配置c++环境
小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.
Linux
{"cmd" : ["g++", "$file_name", "-o", "${file_base_name}", "-lm", "-Wall"], "file_regex": "^(..[^:]*):([0-9]+):?([0-9]+)?:? (.*)$", "selector" : "source.c, source.c++", "shell":false, "working_dir" : "$file_path", "variants": [ { "name": "Run", "cmd": ["gnome-terminal", "-e", "bash -c \"g++ '${file}' -o '${file_path}/${file_base_name}' -lm -Wall && '${file_path}/${file_base_name}' <in.txt ; read -p 'Press any key to continue...'\""] } ] }Windows
{"encoding": "utf-8","working_dir": "$file_path","shell_cmd": "g++ -Wall -std=c++11 \"$file_name\" -o \"$file_base_name\"","file_regex": "^(..[^:]*):([0-9]+):?([0-9]+)?:? (.*)$","selector": "source.c++","variants": [{ "name": "Run in sublime","shell_cmd": "g++ -Wall -std=c++11 \"$file_name\" -o \"$file_base_name\" && cmd /c \"${file_path}/${file_base_name}\""},{ "name": "CMD Run","shell_cmd": "g++ -Wall -std=c++11 \"$file\" -o \"$file_base_name\" && start cmd /c \"\"${file_path}/${file_base_name}\" & pause\""}] }總結(jié)
以上是生活随笔為你收集整理的sublime配置c++环境的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 牛客 contest893 H-Chat
- 下一篇: s3c2440移植MQTT