Open files and folders, and more project model improvements in Rider

What else is new in Rider 2017.2 EAP? Let’s see!

Open file or folder

Not all code is in a solution or project. So we added the ability to open a file or folder from the Rider start screen, the File | Open menu and from the command line (bin\rider somejavascriptfile.js). Here’s me working on our user group’s static HTML website:
Open folder / open file without needing solution or project

The nice thing is that many (but not all!) Rider features are available when opening a file or folder: there’s HTML/JavaScript/TypeScript support, version control, Go to File and Search Everywhere (double-shift) support, as well as Find in Path (Ctrl+Shift+F).

Attach folder to solution

In a related change, it’s now also possible to attach any folder from the file system to an existing solution or project. Note that attaching folders does not include them in the solution file (.sln) itself: it will just be visible in Rider’s Solution Explorer.
Attach existing folder to solution explorer

Change C# language level in project

Rider supports C# language levels from C# 1.0 up to C# 7.1. Projects can define the language level to use by either setting a specific language level, or “latest”. The C# version to use can now be edited from the project properties:
Edit project C# language level

While writing code, Rider will also detect if language features from a higher language level are used. For example when using async main or the default literal, Rider will tell us we have to change the language level, and provides a quick-fix to do so:
Enable language support quick fix

Please download Rider 2017.2 EAP and give it a try!

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

6 Responses to Open files and folders, and more project model improvements in Rider

  1. Adev says:

    I can finally drop sublime text and do all work in Rider, thanks <3

    One thing i noticed is it force the "Show All File" is it possible to make it just show the Pinned folders instead of everything else (bin/obj/src/package etc) ?

    • Evgeniy Stepanov says:

      Right now you can not, sorry =(
      But we are going to implement a separate feature ‘File System Explorer’. Because Solution Explorer shows logical structure of .net project. And works (presents) not so nice file system…

  2. David says:

    Adding PowerShell support (with IntelliSense) would be awesome now that you have folder support.

  3. Ventsislav Mladenov says:

    Hi, What I noticed is that attach a folder adds the folder but checks “Show All Files” and everything is displayed. Is it possible just to display the Solution Items + The attached folder/s.

    • Evgeniy Stepanov says:

      Not yet. We are thinking about this functionality. But likely we will implement a separate view ‘File System Explorer’ to view\manage file system and all attached folders.
      We do not think it is a right way to mix different entities in the solution explorer (file system and solution structure / logical model of msbuild projects).

Leave a Reply

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