Add Configuration
Hi
I'm fairly new to PyCharm and have a couple of questions.
1. When I start the IDE (I'm using the professional edition as I'm a student teacher), the toolbar at the top shows "Add configuration", with the 'Run' green arrow greyed out. Is there a way of setting a standard configuration which will run for all of my projects so I can just click on the green arrow in the toolbar? Presently, I need to select 'Run' from the menu bar and then pick 'Run (alt+shift+F10)' to run the programme for the first time. If I do that, I thne get a pop-up box with 2 choices - '0 - Edit configuration' and '2 - T1.py' (T1.py is my programme). This will run the programme and the green toolbar arrow than becomes active - is there a way of skiping all of this?
2. Is there a way of having every project which I create automatically having a python file as part of it when it starts, rather than having to add it in each time?
Please sign in to leave a comment.
Hi,
1.I don't know about the professional edition as I 'm using the comminity edition,but I think this problem is similar.I don't know how did you do when you just finished coding.A easy way is just clicking the "File"and choose the "Save All",then may be you can try to run it by clicking the green arrow.My IDE have happened this when I try to run it because I installed it just now that day.It hinted me to choose the configuration every time when I tried to run my code.But when I use it today ,it doesn't hint me anymore.
2.I think it just can't achieve that because the IDE can't make sure if you want the python file the same name as the project.Actually you can just make a new python file without a project.I don't know whether it can be run because i have not tried that yet But I think that you have to make a new python file with a name in your project because the IDE can't be sure that if you want one more python files in this project.
Thanks. Your answer to #2 makes good sense.
I'll experiment with option 1!
Hi!
Add to option 1:
to test my words I just opened my Pycharm and coded a 'Hello world'program.Just like you said ,the 'Run' arrow is grey.My words that open the "File" and choose the 'Save All' doesn't work! But I remember the easiest way to run it,when you finish coding your program,just let the mouse cursor in the IDE interface and click the right button of the mouse,you will see an option is 'Run the ......(your python file name)',just click it,then it will work.