Because like Sublime Text 3 of the highlight color, so want to write the program Here. When configuring the configuration file from Emacs I don't know where to go. vim configuration for half a day is very fulfilling, I am more familiar with the configuration File. But Sublime Text 3 is not that Troublesome. The way to configure C + + compilation runs is probably to configure a build System. The C + + compilation configuration that runs in the cmd window and resolves the Chinese garbled problem is as follows:
{
"encoding": "utf-8",
"working_dir": "$file_path",
"shell_cmd": "g++ -Wall -std=c++11 -fexec-charset=GBK \"$file_name\" -o \"$file_base_name\"",
"file_regex": "^(..[^:]*):([0-9]+):?([0-9]+)?:? (.*)$",
"selector": "source.c++",
"variants":
[
{
"name": "Run",
"shell_cmd": "g++ -Wall -std=c++11 -fexec-charset=GBK \"$file\" -o \"$file_base_name\" && start cmd /c \"\"${file_path}/${file_base_name}\" & pause\""
}
]
}
Sublime Text 3 Configuring C + + compilation Run