Python Forum

Full Version: Can Cmder be used to write Python programs?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi!

Can Cmder be used to write Python programs?

Because at the moment, I'm using the Python 3.7.4 Shell, clicking on the 'File' drop menu, and selecting 'New File', where I write the program, I give it a name, and I save it there. But I run the programs in Cmder.

I would like to know if there is a way to write and save the programs in Cmder, and then run them on the same Cmder. In that way, it would be much quicker, and consistent throughout the process.

All the best,
You should install an IDE, it makes programming so much easier
My recommendation is VSCode free, runs on any platform, and is excellent
To properly install and get started, see: https://python-forum.io/Thread-VS-Code-f...ght=VSCode
I agree with Larz60+ - one should use IDE and in VS Code you can assign keyboard shortcut to run a file which is pretty consistent process in my opinion.

Said that there are terminal based text editors (Emacs, Vim) which can be used to write into file from terminal. For example one can open emacs in no-window mode in terminal with: “emacs -nw”.
Quote:Can Cmder be used to write Python programs?
No,it's better shell(not editor) than cmd/Powershell.
I do small code testing with the combination cmder and ptpython
So a better REPL that can write code in or copy in code to,ptpython also save all you do automatic to look(F3).
[Image: LVzvRt.png]
I also have set cmder as Terminal in VS Code,but doing testing i like better cmder alone with ptpython.
I often start from cmder with code .(start VS Code from folder you are in),then have both open.
So this is a setup i like like,you have to experiment to find something that work for you.
[Image: FFKBa5.png]
I guess you could use vi in Cmder.
Before you search the command to exit vi: https://stackoverflow.com/questions/1182...vim-editor
(Sep-29-2019, 03:13 AM)Larz60+ Wrote: [ -> ]You should install an IDE, it makes programming so much easier
My recommendation is VSCode free, runs on any platform, and is excellent
To properly install and get started, see: https://python-forum.io/Thread-VS-Code-f...ght=VSCode

(Sep-29-2019, 05:18 AM)perfringo Wrote: [ -> ]I agree with Larz60+ - one should use IDE and in VS Code you can assign keyboard shortcut to run a file which is pretty consistent process in my opinion.

(Sep-29-2019, 10:18 AM)snippsat Wrote: [ -> ]I also have set cmder as Terminal in VS Code,but doing testing i like better cmder alone with ptpython.
I often start from cmder with code .(start VS Code from folder you are in),then have both open.
[ ... ],you have to experiment to find something that work for you.

(Sep-29-2019, 10:23 AM)DeaD_EyE Wrote: [ -> ]I guess you could use vi in Cmder.

Thanks a lot to all of you!

I've installed Visual Studio Code (VS Code), but now I need to learn how to do all the twists and tweaks to make it work for me. This time I think I'm going to take it slower, because it seems that I'm using most of my time looking for a coding environment, instead of coding itself, that it should be my priority at the moment.

All the best,