Python Forum
"RUN" - how to set a defaut setting
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
"RUN" - how to set a defaut setting
#1
Hello, I'm facing that problem in any tool that I tested (visual code, idle) and now I face in PyCharm too.

When I hit the shortcut to "Run", the program shows the option below

   

I don't understand why python debug is different of all other languages, where you hit Run in the IDE and the file runs. I suspect that must have a motive, but I'd like of choose "Run" and the IDE don't ask for any choice adictional setting.
How can I configure that?
Reply
#2
Not sure how you get that menu as i don't use PyCharm,if i and download and test pycharm-community-2024.3.3 use this version is free and has all you need.
The run button dos what meant to just run the code,and the debug button start the debugger.
So bye default it make a virtual environment,mabe confusing if new,but there is lot of help for PyCharm out there.
If click down in right corner can choose a different interpreter eg OS Python.
[Image: DMw7JZ.png]
cimerio likes this post
Reply
#3
hum... I think that I understand now. The problem occurs when I hit the shortcut to Run. It asks for the file.
However, it doesn't recognize the "active" file that I working as other IDE (Visual Studio and C#, for example.)
I attached a video to show.
Look, I need to choose the file to run, even if change the file in interface. Need to choose it to run.
Must be a way to automatic that.
I can't believe that a ide so huge has a 4th rate behaviour Undecided

Reply
#4
hello, I discoverend the answer here:

https://stackoverflow.com/questions/4380...in-pycharm

It was a trick to find the discreet and hidden option "Run context configuration" but finally I found and changed to F5

   

I can't understand some features in the softwares. Seems too stupid and counter-productive for me but what know I? Must be a logic.
Reply


Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020