Dev-Cpp Sublime配置信息

sublime显示制表符:

“draw_white_space”: “all”

 

设置tab转换为4个空格:

具体步骤如下:
1. 菜单栏里点击 Preferences-> Setting-User

2. 在弹出来的文本里,添加如下两行:

{

// 注意只有一个大括号,如果之前有属性,如在之前的属性前确保有 ,(逗号)
"tab_size": 4,
"translate_tabs_to_spaces": true

//若要在保存时自动把tab 转换成空格,请把下面一行设置成 true,如不需要: 设置成 false

"expand_tabs_on_save": true
}

 

 

{
 "cmd": ["gcc", "${file}", "-fexec-charset=gbk","-o", "${file_path}/${file_base_name}", "&", "start", "cmd", "/c", "${file_base_name} & echo. & pause"],
 "file_regex": "^(..[^:]*):([0-9]+):?([0-9]+)?:? (.*)$",
 "working_dir": "${file_path}",
 "selector": "source.c, source.c++",
 "shell": true,
 "encoding":"cp936",
}

 

{
    "cmd": ["gcc","${file}","-o", "${file_path}/${file_base_name}"],
  "file_regex":"^(..[^:]*):([0-9]+):?([0-9]+)?:? (.*)$",
  "working_dir":"${file_path}",
  "encoding":"cp936",
  "selector": "source.c",
 
  "variants":
  [
  {
    "name": "Run",
    "cmd": ["cmd","/C", "start", "cmd","/c","${file_path}/${file_base_name}.exe & pause"]
    }
  ]
}
 

 

http://sourceforge.net/projects/mingw

 

http://www.pianshen.com/article/991754636/

 

不要选中c,光标在c左或右,连续按Cmd-D (Win: Ctrl-D)

你可能感兴趣的:(Windows环境编程)