

It is ok even if you don’t understand this code. Write the below code and save the file.Ĭlass CmdCommand(sublime_plugin.TextCommand):Ĭommand= "cd "+current_directory+" & "+current_driver+" & start cmd" Create a new folder CMD (all uppercase letters). Click on the Preferences and then select Browser Packages….So, here I am giving the solution to my both problems by which you can open a command prompt from the Sublime editor with a single click. And the changing current directory of the command prompt for every program I run.

“Change the current directory of the command prompt where the program is saved. “Minimize the Sublime editor and open command prompt from Windows application stray”. Whether if it is Python or C/C++ programming, you need to the compile and run it through the command prompt ( cmd).Īfter writing a program, you can not open the command prompt from the Sublime editor.

Unfortunately, Sublime does not have the intelligence to compile and run you’re any program. Sublime is just an editor that highlights coding syntax.Īfter writing any programming, you save it. How to Open Command Line Prompt From Sublime Editor? Get your own experience before I explain you further. If you are not using it and are serious about coding, I would recommend you to download and install Sublime. So the sublime is the best choice for you. Using a single editor makes your job easy. If you dabble in many programming languages, it is not a good choice to keep one editor (IDE) specific for each programming language. It supports and highlights syntax for so many programming languages. Why should you use the Sublime editor, too? In this article, I am sharing step by steps procedure open command line prompt from Sublime editor.īefore starting this tutorial, let me tell you, that Sublime is one of the best editors for programming.
