Sublime Forum

Not C++ compile on save

#1

Hi,
I just currently installed the Clang-Format package, which works fine. Now, as a side effect, Sublime tries to compile a C++ file, when I save the file (cmd-s).

I tried to disable the Clang-Format package, to see if this new behaviour steems from this packaged, but it did not. Next I disabled the C++ package, which stopped Sublime from compileing my code, but unfortunatelly, the C++ syntax highlighting is also gone.

How can I configure Sublime to not compile C++ file, but to still highlight C++ files?

kind regards,
Torsten

0 Likes

#2

Sublime Text doesn’t compile your code by default, that is certainly caused by an external package. The C++ package (ships by default) only contains syntax highlighting. It is likely that since you no longer have C++ syntax highlighting another package no longer tries to compile your code (as it doesn’t recognize it as C++)

2 Likes

#3

Thanks, clang-complete was the culprit. I dunno if it was install along with Clang-Format, or what ever. After disabling that package, everything works fine again.

0 Likes