When running a Asp.Net app Open browser in new window not new tab

Is there a way to get Rider to behave like Visual Studio when it starts a Web App when it opens a new browser window and not a browser tab?  I attempted a search, but did not find anything on this topic.

0
1 comment

Hello,

Thank you for contacting Rider support. You can achieve it in several ways:

  • Will work only during debug, Per-project: 
    • Open Run | Edit Configurations and select the your web application configuration;
    • Find and tick the “with JavaScript debugger”;

    • Now when you run this configuration via the “Debug” button, it will be opened in a new browser window;
  • Set global argument `--new-window` to be passed to browser everytime Rider opens something in browser:
    • Follow the steps shown in the screenshot:
    • Now on Run/Debug any web application with “launchBrowser: true” in its launchsettings.json, a new browser window would open.
  • Or, instead of using this `--new-window` argument, you can tick the “Use custom user data directory”. It allows starting a dedicated custom user session (in a new browser window).
    In short: if no browser window using this data directory yet launched, a new window will open. Otherwise, a new tab in that browser window would open:

 

Hope that helps. Have a nice day!

1

Please sign in to leave a comment.