And try to get the things done from keyboard shortcuts in the jiffy. Tip: If you want to excel in programming, get rid of using the mouse. The command prompt will be opened through which you can compile and run your program.You can see the Cmd menu in Context menu options.Open any program file in the sublime editor and Right-click ( context menu).Copy and paste lines given below into the file and save it. Create another file with a name Context.sublime-menu.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 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.
Sublime text windows command lime how to#
How to Open Command Line Prompt From Sublime Editor? Get your own experience before I explain you further.
Sublime text windows command lime install#
If you are not using it and serious about coding, I would recommend you to download and install Sublime. So the sublime is the best choice for you. If you dabble in many programming languages, it is not 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, Sublime is one of the best editors for programming.