Sublime Text 2 C++ Build+Run Windows settings
AndreiL :: Info space :: Info space :: C++ Space
Page 1 of 1
Sublime Text 2 C++ Build+Run Windows settings
The default folder of the packages for the C++ build under Sublime Text2 using MinGW located in a different folder than the usual C:\MinGW (but I guess it will work for the default as well).
- Code:
C:\Users\~Your_User_Name~\AppData\Roaming\Sublime Text 2\Packages\C++
- Code:
C++.sublime-build
- Code:
{
"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",
"cmd": ["bash", "-c", "g++ '${file}' -o '${file_path}/${file_base_name}' && '${file_path}/${file_base_name}'"],
"cmd": "${file_path}\\\\${file_base_name}.exe"
}
]
}
- Code:
"cmd": "${file_path}\\\\${file_base_name}.exe"
- Code:
{
"cmd": ["g++", "${file}", "-o", "${file_path}/${file_base_name}"],
"file_regex": "^(..[^:]*):([0-9]+):?([0-9]+)?:? (.*)$",
"working_dir": "${file_path}",
//"cmd": "${file_path}\\\\${file_base_name}.exe",
"selector": "source.c, source.c++",
"variants":
[
{
"name": "Run",
"cmd": ["bash", "-c", "g++ '${file}' -o '${file_path}/${file_base_name}' && '${file_path}/${file_base_name}'"],
"cmd": "${file_path}\\\\${file_base_name}.exe"
}
]
}
AndreiL :: Info space :: Info space :: C++ Space
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum
|
|