Chinaunix首页 | 论坛 | 博客
  • 博客访问: 861652
  • 博文数量: 286
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 1841
  • 用 户 组: 普通用户
  • 注册时间: 2015-05-09 16:26
文章分类

全部博文(286)

文章存档

2016年(38)

2015年(248)

我的朋友

分类: LINUX

2015-08-01 14:53:09

在菜单栏-tools-build system-New build system
复制下面:
   

点击(此处)折叠或打开

  1. {

  2.      "shell_cmd": "gcc \"${file}\" -o \"${file_path}/${file_base_name}\" -lm -Wall",
  3.             
  4.              "file_regex": "^(..[^:]*):([0-9]+):?([0-9]+)?:? (.*)$",
  5.                 
  6.              "working_dir": "${file_path}",
  7.                 
  8.              "selector": "source.c",
  9.                         
  10.      "variants":
  11.      [
  12.        {
  13.                                                 
  14.      "name": "Run",
  15.                                                     
  16.      "shell_cmd": "x-terminal-emulator -e bash -c \"\"${file_path}/${file_base_name}\" ; read -p '\n Press any key to continue...'\""
  17.      }
  18.      ]
  19. }
保存即可


阅读(1539) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~