Question

When I open a file with an ending of ".c" in Sublime Text 3, the program displays it in C++. I know this because the language shown in the bottom right hand corner is "C++". Can I change this?

I don't know if it is related, but when I try to run or build a C program, Sublime Text compiles it using g++ and not gcc. Also, I'm using a linux OS.

Thanks.

Was it helpful?

Solution

You can just click on that C++, a menu shall appear in which you can select C.

Since you're saying that all the files with .c extension are being viewed as C++ files, you may also want to change that default by navigating to:

View >> Syntax >> Open all with current extension as... >> C

While having a .c document as the active tab/group/window.

OTHER TIPS

Sure you can, in the tool bar select Tools->Build System->New Build System... this will allow you to create your custom setting build. After that you can remove Build System from Automatic and set it to your custom Build. Hope it helps.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top