How to get sublime text support for compiling C + +

Source: Internet
Author: User
Tags sublime text

New compilation system, compiler system, select Tools

Then enter the content in the new file that appears:

{    "path": "D:/Program Files (x86)/CodeBlocks/MinGW/bin",    "shell_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",            "shell_cmd": "g++ \"${file}\" -o \"${file_path}/${file_base_name}\" && \"${file_path}/${file_base_name}\" < input.in "        }    ]}

Then save this thing, remember, save it in the default path, and name it C + + to run.

Then select "Column: 2" in the layout of the view, then open a file in another column and save it as input.in, and then enter the corresponding input in this file.
After clicking on the original code, press CTRL+SHIFT+B, select the first, then press Ctrl+shift+b, in the pop-up selection of the second, then you can see in the popup of the program in the input input.in content after the output of the results.

How to get sublime text support for compiling C + +

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.