Intellipaat Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Python by (47.6k points)

I want to set up a complete Python IDE in Sublime Text 2.

I want to know how to run the Python code from within the editor. Is it done using build system? How do I do it?

1 Answer

0 votes
by (106k points)

To run Python code from Sublime Text 2 you can follow the given steps:-

Go to Sublime Text’s Tools -> Build System ->  and (choose) Python then:

To Run the code following the given steps:

Tools -> Build -or- Ctrl + B CMD + B (OSX)

The above step will start your file in the console which should be at the bottom of the editor.

To stop the code from running follow the below-mentioned steps:

Ctrl + Break or Tools -> Cancel Build Fn + C (OSX)

Related questions

0 votes
1 answer
asked Sep 27, 2019 in Python by Sammy (47.6k points)
0 votes
1 answer
asked Dec 29, 2020 in Python by ashely (50.2k points)
0 votes
1 answer
asked Sep 26, 2019 in Java by Shubham (3.9k points)
0 votes
1 answer

31k questions

32.9k answers

500 comments

692 users

Browse Categories

...