[Newbies] sublime text设置问题
Tofloor
poster avatar
tantj_975
deepin
2021-07-21 08:04
Author

请问大神怎么在deepin环境下搭建一个sublime text C语言调试环境,要有启动命令行窗口的?麻烦指点下。

 

Reply Favorite View the author
All Replies
tantj_975
deepin
2021-07-21 08:11
#1
C.sublime-build:
{
    "shell_cmd": "gcc \"${file}\" -o \"${file_path}/${file_base_name}\" -lm -Wall",
    "file_regex": "^(..[^:]*):([0-9]+):?([0-9]+)?:? (.*)$",
    "working_dir": "${file_path}",
    "selector": "source.c",
 
    "variants":
    [
        {
            "name": "Run",
            "shell_cmd": "x-terminal-emulator -e bash -c \"\"${file_path}/${file_base_name}\" ; read -p 'Press any key to continue...'\""
        }
    ]
}
 
 
 
C++.sublime-build:
{
    "shell_cmd": "g++ \"${file}\" -o \"${file_path}/${file_base_name}\" -lm -Wall",
    "file_regex": "^(..[^:]*):([0-9]+):?([0-9]+)?:? (.*)$",
    "working_dir": "${file_path}",
    "selector": "source.c, source.c++",
 
    "variants":
    [
        {
            "name": "Run",
            "shell_cmd": "x-terminal-emulator -e bash -c \"\"${file_path}/${file_base_name}\" ; read -p 'Press any key to continue...'\""
        }
    ]
}
Reply View the author
tantj_975
deepin
2021-07-21 08:12
#2
tantj_975
C.sublime-build:
{
    "shell_cmd": "gcc \"${file}\" -o \"${file_path}/${file_base_name}\" -lm -Wall",
    "file_regex": "^(..[^:]*):([0-9]+):?([0-9]+)?:? (.*)$",
    "working_dir": "${file_path}",
    "selector": "source.c",
 
    "variants":
    [
        {
            "name": "Run",
            "shell_cmd": "x-terminal-emulator -e bash -c \"\"${file_path}/${file_base_name}\" ; read -p 'Press any key to continue...'\""
        }
    ]
}
 
 
 
C++.sublime-build:
{
    "shell_cmd": "g++ \"${file}\" -o \"${file_path}/${file_base_name}\" -lm -Wall",
    "file_regex": "^(..[^:]*):([0-9]+):?([0-9]+)?:? (.*)$",
    "working_dir": "${file_path}",
    "selector": "source.c, source.c++",
 
    "variants":
    [
        {
            "name": "Run",
            "shell_cmd": "x-terminal-emulator -e bash -c \"\"${file_path}/${file_base_name}\" ; read -p 'Press any key to continue...'\""
        }
    ]
}

已解决。。。。。。

Reply View the author