Coming from Visual Studio looking for commonly used features

Hello, I'm trying out Rider being a long time Visual Studio user.  So far overall its nice, but I was wondering if I could ask about a couple of features that I am used to in VS, if they are present in Rider.

'Sync with Active Document (ctrl+[, s)'  This feature is where you have an open document in your editor, and you want to quickly navigate to it in the Explorer (Solution Explorer in VS).  In VS its 2 blue lines that point to each other's ends 

'Open browser in new window not new tab'  I'm sure this is simple, maybe I've overlooked a helpful video or documenation, but how do you get the app to open in new window and not just a new tab of an existing window?
Other questions I've wondered

  • Stop debugging when browser is closed
  • Close browser when debugging is stopped
  • How to open new browser window AND open dev tools, if using chrome

Again, new user here.  Just dumb questions.

 

J

0
5 comments

Hello,

Thanks for your feedback! Rider has a feature similar to 'Sync with Active Document (ctrl+[, s)'  which is named Select Opened File:

As for working with browser, both features

  • Open browser in new window not new tab
  • Stop debugging when browser is closed

Will be implemented in the scope of this feature request. Unfortunately, Rider cannot do that yet. 

Open browser in new window not new tab is a side-effect of the two mentioned above. In Visual Studio, tab/window behavior depends on "Stop debugger when browser window is closed" option. I assume Rider will work the same way.

How to open new browser window AND open dev tools, if using chrome. As far as I know, it is not possible. May I ask how do you do it in Visual Studio?

0

Thank you for the response...

you asked

How to open new browser window AND open dev tools, if using chrome. As far as I know, it is not possible. May I ask how do you do it in Visual Studio?

I did find out that this can be accomplished via this article, the trick to remember is that VS will only open the chrome dev tools when no other chrome windows are running.  Otherwise it will open a new Chrome window, just not with Dev Tools opened also.

 

0

Thanks for the hint! Rider can also pass arguments to the browser in a run configuration. Here are the steps for .NET Launch Setting Profile run configuration:

1. Open File | Settings | Tools | Web Browsers

2. Select Chrome and press Edit button on top

3. Add --auto-open-devtools-for-tabs to Command line options

4. Save settings

5. Open the run configuration you use (Run -> Edit Configurations), and make sure Chrome is set explicitly as an after launch browser

Alternatively, you can do it all right in the run configurations, see the screenshot.

Let me know if you have any questions.

 

 

0

Thank you again for the response Julia Vaseva.  May I ask yet another question?

In one of my projects, I have to run a cmd window with the command

java -Djava.library.path=./SomeFolder -jar SomeDynamoDB.jar -sharedDb

before debugging/running my solution.  Can my solution in Rider be configured to do this when I run my solution?  I've tried using the pre-build argurments but the focus stays on that new cmd window and doesn't continue on to actually starting the app.

In other words, can a cmd prompt with a command run BEFORE my app loads?

 

Jason

 

0

Sure! Any questions about Rider.

If I got your right, you should create a new run configuration of type `Native Executable` with your java command and add it as a `Before launch` step to your main run configuration.

Does it solve your problem?

 

 

0

Please sign in to leave a comment.