Recents in Beach

How to Setup Sublime Text For C/C++

To set up Sublime Text for C/C++ programming, you can follow these steps:



  1. Install Sublime Text: You can download Sublime Text from the official website and install it on your system.

  2. Install Package Control: Package Control is an essential plugin manager for Sublime Text. You can install it by following the instructions on the Package Control website.

  3. Install C/C++ Build System: To build and run C/C++ programs, you need to install a build system. Open Sublime Text, press Ctrl + Shift + P (Windows/Linux) or Command + Shift + P (macOS) to open the Command Palette, type "Package Control: Install Package" and press Enter. Then type "C++ Build System" and press Enter to install the package.

  4. Create a new C/C++ file: To create a new C/C++ file, click on "File" in the menu bar, select "New File," and save it with a ".cpp" or ".c" extension.

  5. Add code: Add your C/C++ code to the new file.

  6. Build and run: To build and run your code, press Ctrl + B (Windows/Linux) or Command + B (macOS). Sublime Text will automatically detect the build system you installed and compile your code. If your code compiles successfully, a new terminal window will open, and you can run the program by typing its name.

  7. Customize build settings: If you need to customize the build settings, you can create a new build system by clicking on "Tools" in the menu bar, selecting "Build System," and then "New Build System." You can then modify the JSON file to include any additional compiler flags or other settings.

That's it! With these steps, you should be able to set up Sublime Text for C/C++ programming.

In this tutorial, you can setup your Sublime Text For C/C++. MinGW :https://osdn.net/projects/mingw/relea... Build Code:https://ideone.com/Cbaow1


Command

Ctrl+b

Post a Comment

0 Comments