How do you guys ever write code and execute it?
I'm always
Start terminal
↓
cd to a suitable directory
↓
python 〇〇.py
↓
enter
I was doing it, but this is quite troublesome, isn't it?
This time, you can skip all this troublesome procedure and suddenly execute the code with one command in the Atom application.
By installing the Atom extension, I was able to run the program without starting the terminal, so make a note of it.
I think most people do it normally, but I was quite impressed because it was a function I found when I was messing around with the Atom settings.
So what did you actually do?
↓ I just installed this.
Preferences→install
Just install the package called script.
Select the code on Atom and press ⌘ + i to automatically start terminal and execute the code.
It seems that you can execute only a part of the code with ⌘ + j, but I don't know how to use it yet. Lol
Recommended Posts