Web developer tools in Rider 2017.3: HTTP client and SVG editing

Our previous blog post showcased two great web developer tools in Rider 2017.3: LiveEdit and Spy-JS. Let’s look at two more tools Rider gets from WebStorm: a new editor-based HTTP client and a preview panel for SVG files.

This post is part of a series:

Editor-based HTTP client

Ever since the first Rider release, we have had a built-in HTTP client to help test any HTTP API’s we are building in the IDE. It can be found from the Tools | Test RESTful Web Service menu. This HTTP client provides a tool window in which we can craft requests, add headers, inspect results etc.

With Rider 2017.3, we are adding a more direct way of interacting with HTTP-based services. We can work with a web API by simply creating a new scratch file (Ctrl+Alt+Shift+Insert), setting its language to HTTP request, and typing the request. Alternatively, the Tools | Show HTTP Requests History provides access as well.

The request can be in any form: just the URL, or a full-blown HTTP request that includes the method to use (GET, POST, …). Rider provides completion for many headers as well. Once the request is crafted, we can run it using the Run icon in the left gutter, or using Alt+Enter.

Create HTTP request in scratch file

Right after our request in the editor, we will see a link to the response output, which is a JSON file in our case. We can navigate to it and inspect the response in more detail. If we’d run our request again, a second link will appear for the second request. We can compare them using Alt+Enter.

There’s more to explore with this new HTTP client:

  • Multiple requests can be created in one file. Use ### to separate them.
  • Comments can be added using either # ... or // ...
  • Want to send file data to the server? Use < file.json to add it as the request body.
  • It’s quite easy to run HTTP requests with environment variables. This allows testing against multiple environments or creating query string presets.

Preview panel for SVG editing

Making a quick change to SVG files became an easier task with Rider 2017.3. We have added a new preview panel for the SVG editor, rendering the vector image. While editing the SVG file in the editor, any change can be previewed immediately.

SVG preview panel

What else is there?

In this series, we looked at numerous web development improvements in Rider. You may also want to look at some of the WebStorm blog posts for more.

Download Rider 2017.3 and give it a go! We’d love to hear your feedback!

This entry was posted in How-To's and tagged , , , , , . Bookmark the permalink.

2 Responses to Web developer tools in Rider 2017.3: HTTP client and SVG editing

  1. Charlie Hayes says:

    What rendering engine does the SVG preview use?

Leave a Reply

Your email address will not be published. Required fields are marked *