Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Prevent PyCharm from opening the browser/new tab on run

I found a number of people who want PyCharm to open the browser/a new tab every time you click run.

  • https://intellij-support.jetbrains.com/hc/en-us/community/posts/206590705-How-do-I-setup-Run-Debug-Config-to-open-browser-automatically-for-Flask-
  • Django manage.py runserver doesn't open browser

Well, I click run often and already have the tabs open I need. It's quite frustrating to have to close the new ones, and I want to turn it off. I have looked thru all the menus and I can't find the Run browser setting some people talk about.

I also tried disabling all Django support for browsers in Settings -> Tools -> Browsers, but this made no difference.

Versions:

  • PyCharm 2017.1.1
  • Python 3.5.x
  • Django 1.10
like image 993
CoderGuy123 Avatar asked Jun 02 '17 03:06

CoderGuy123


2 Answers

edit run configurations(right next to the play button at the top of the editor) and uncheck the box that says open new window on run .... – @Joran Beasley P/s: Just comment again.

like image 143
Nam Nguyễn Avatar answered Nov 15 '22 00:11

Nam Nguyễn


For version 2018.3

  1. Go to File | Settings | Build, Execution, Deployment | Console.
  2. Check the option Use existing console for "Run with Python console".
like image 22
Maged Abdelaty Avatar answered Nov 14 '22 22:11

Maged Abdelaty