1

Hi everyone I'm new to programming.

I am learning Python and I want to use Sublime Text as an IDE.

I've searched and found that it is impossible to run python code from sublime text2 without having the "eofError".

Now, I want to know if it was possible to launch the .py via a keyboard shortcut directly from sublime text, instead of saving it, and then returning to windows explorer and then double clicking on it.

I want it to open in a windows like this : http://image.noelshack.com/fichiers/2013/16/1366399189-nnnnn.png

Thanks.


I just found a solution here that does basically the same job as the "F5" key in IDLE.

Thanks everyone.

user2300440
  • 11
  • 1
  • 3
  • Thanks but I've already seen that post. It doesn't really answer my question since what I want to do is to create a shortcut that permits me to launch the *.py file like when doing in cmd "c:\windows\py.exe file" What I want to do is that same exact thing, but directly from sublime text. – user2300440 Apr 19 '13 at 19:41
  • But it clearly mentions that what you're looking for is not possible in sublimetext2, as it doesn't supports input from STDIN. – Ashwini Chaudhary Apr 19 '13 at 20:14
  • Sorry I don't even know what is STDIN. As for your link, can you please tell me how to execute the script in sublimerepl's console tab? Thanks. – user2300440 Apr 19 '13 at 21:38

1 Answers1

1

Great editor. Here is a resource for creating macros in Sublime Text 2:

http://webdesign.tutsplus.com/tutorials/workflow-tutorials/quick-tip-banish-repetitive-tasks-with-sublime-text-2-macros/

This previous post might also have what you are looking for:

Running Python interactively from within Sublime Text 2

Community
  • 1
  • 1
Charlie Andrews
  • 1,457
  • 19
  • 28