Sublime Forum

(ctrl alt t ) is not working

#1

actually, i use to run my program through command prompt by using key (ctrl+alt+t) and then cmd window opens and then after by pressing " a" my code use to run. but now it is not working .plzz tell me how to run it again using cmd

0 Likes

#2

You should use a Sublime Text build system which opens a cmd window. What operating system do you use?

This is an example for Linux with XFCE4 terminal:

{
    "working_dir": "$project_path/TeachingEpos",
    // "selector_old": "source.matlab, source.octave", // comment this to build from everywhere
    
    "name": "Build Main File",
    "cmd": ["sh", "choose_a_compiler.sh", "producer_consumer.cc"],
    
    "variants":
    [
        {
            "name": "XFCE4 Terminal",
            "cmd":
            [
                "/usr/bin/xfce4-terminal",
                "--maximize",
                "--hold",
                "--command",
                "sh compile_and_run.sh philosophers_dinner.cc"
            ]
        }
    ],
    
    "target": "exec",
    "syntax": "Packages/Text/Plain text.tmLanguage",
}
0 Likes