Rider 2021.1

Incluye mejoras de compatibilidad con Docker, compatibilidad con C# y desarrollo web.
Abril 12, 2021
Nueva versión

Características

Docker Support

  • Adding Docker support - You can now generate the Dockerfile while creating a new project.
  • Dockerfile - Rider can now run Dockerfiles generated by Microsoft Visual Studio. No additional changes are required from you in the Dockerfile to make it Rider-compatible.

C# Support

  • More patterns to merge - The Merge into pattern inspection can now deal with many more code patterns:
    • Fuse null checks with other checks into a single pattern check.
    • Rewrite checks from conditional?.Access expressions to nested pattern matching.
    • Reduce if statement nesting by merging the checks together.
    • You can merge patterns inside a simple var (a,b) deconstruction pattern by expanding them to full forms.
  • More C# 9.0 Support - Added more support for C# 9.0 records:
    • The Extract interface and Extract superclass refactorings now work with record declarations, as do File Layout and the features that have to do with XML documentation.
    • Added a new set of inspections and actions.
      • Redundant explicit property declaration for properties in record declarations can be of help while migrating your code to use records with positional parameters and implicit property declarations. A corresponding quick-fix and Remove explicit property is now included.
      • The Redundant 'record' type declaration body inspection and the corresponding quick-fix will now replace the empty record type declaration body with a semicolon.
      • If you decide to turn a record into a class, the To class action will take care of the positional parameters and primary constructor. There’s a To record action that works the opposite way as well.
      • Whenever you need to rewrite positional parameters and a primary constructor to ordinary properties, constructor and an explicit Deconstruct() method, consider using the To explicit constructor context action.
      • Find usages now searches for the usages of a record’s primary constructor and for the usages of an implicit Deconstruct() method.
  • Inline temporary variable - Added a new inspection, Inline temporary variable. Rider can now help you find bugs if the temporary variable was supposed to be initialized to some other value or mutated later in code.
  • Rename in Tuples - Added the ability to rename the Named tuples components. You can now call the refactoring.
  • Other Improvements:
    • Logical not patterns can help you make your type checks much easier to read. Rider now offers dropping the !() syntax in favour of a not pattern.
    • For C# 10.0 support, Rider now works with the Constant interpolation strings feature.
    • Rider now suggests using the range operator instead of Slice and Substring, if doing so simplifies the code.
    • The Namespace does not correspond to file location inspection is now suppressed in files with top-level code.
    • There’s another new inspection that checks whether an auto-property can be replaced with a computed property, along with a quick-fix to make the replacement.

Web Development

  • Scaffolding for Microsoft ASP.NET - Added a scaffolding mechanism for ASP.NET Core projects.
    • Rider supports scaffolding Areas, Controllers, Razor Pages, Views and Identity, including generating boilerplate source code for full CRUD operations to use Microsoft Entity Framework. It is available on Microsoft Windows, Linux and Apple macOS.
  • ASP.NET Core route templates - Added support for route templates. Rider now provides code completion, structural navigation, inspections and quick-fixes, including:
    • Inspections to check HTTP syntax errors.
    • Inspections and quick-fixes to check/fix route parameter issues.
    • Inspections for route constraints.
  • Delete files before publishing - Added the option to delete existing files in the folder before publishing.
  • Bundled MDN documentation - MDN documentation is now bundled with Rider which will help prevent connectivity issues with the MDN website and make in-editor documentation in your HTML, CSS, and JavaScript files display more quickly.
  • Improved support for Stylelint - Inspecting your CSS code with Stylelint is now easier. Hover over a problem in your file or place the caret on it and press Alt+Enter, then select Stylelint: Fix current file. You can also now specify a path to the configuration file under the corresponding field in Preferences/Settings.
  • Selector specificity for CSS - When working with style sheets, you can now check the specificity of your selectors.
  • Built-in HTML preview - The new built-in browser preview allows you to preview HTML files quickly. If you make any changes in HTML or if you change the linked CSS and JavaScript files, the preview will update on the fly.

Debugger

  • Attach to Process on Welcome Screen - You can now attach to a .NET process right from the Welcome Screen.
  • Interactive debugger hints - Rider now has interactive debugger hints. Hints in the editor not only show you what’s going on but also allow you to intervene in and interact with the debugger process through debugger hints.
  • Other debugger updates:
    • Added an option to show raw data for an object if its representation has been changed with a DebuggerBrowsable attribute.
    • Added an option to show all compiler-generated members while debugging.
    • The remote debugging processes' content is now shown correctly on macOS.
    • Added support for the evaluation of auto-properties when this evaluation is impossible.

Game Zone

  • Unity
    • Rider can show you where Unity is using your code inside scenes, assets and prefabs, highlighting usages directly in the Unity Editor. This release extends this to support animation assets, showing usages of properties and methods as animation callbacks.
    • Rider gives you code completion and validation for Unity’s magic strings. It already supports tags, layer names, scenes and coroutines and this release adds support for animation state values.
    • Added menu items to show all the methods called in the hot path back up to an Update method, or trace the outgoing calls to finally reach a known expensive Unity API.
    • For Burst compiled methods, Rider will now show you the route through all called methods back to the start of the Burst context.
    • Rider will now help debug SerializedProperty instances as well. Irrelevant fields are hidden by default, showing only values that are relevant to the type of the property. You can easily see child properties and all of the serialised data.
    • Extended the Unity based unit testing support to include code coverage of play mode tests. Discover, run and debug and show code coverage of Unity edit mode and play mode tests, all without leaving the code editor.
    • Improved meta file handling.
    • Improved performance when adding log entries into the Unity tool window.
    • Improved grouping of Unity-related file templates.
  • Godot - Updated Godot support for Rider plugin. It now supports running NUnit unit tests directly in the game process to help ensure everything works as expected.
  • Unreal Engine - Rider for Unreal Engine is available for public preview (Windows only).

VCS

  • Improves Pull Requests:
    • The Pull Requests (PR) view now features a drop-down list with all the available repositories for the current project.
    • Better Pull Requests support - Pull request creation now takes less time: just click the + icon in the Pull Requests view and fill in all the details.
    • In the Info tab, you can now select the head repository and its branch, enter a PR title and description, appoint reviewers and assignees, and add descriptive labels.
    • Added support for PR templates.
  • Save to Shelf - The new Save to Shelf action allows you to copy your changes to the Shelf while keeping them in the local changes.
  • Get files from another branch - You can now get a file from another branch in the Compare with branch dialog.

UI/UX

  • Solution Explorer - Rider now saves the Solution Explorer’s state between closing and opening the IDE, including opened nodes. You no longer need to expand the nodes manually every time you reopen a solution or restart the IDE.
  • Maximize tabs in the split view - Whenever several tabs that split the editor vertically are open, you can double-click either of them to maximize the editor window for that specific tab. To bring the window back to its original size, simply double-click it again.
  • Folder selection dialog (Windows only) - Reworked the folder selection dialog on Windows. Now it will only show you folders, which you are able to select.
  • Recent solutions from Taskbar (Windows only) - You can now access your recent projects on Windows by right-clicking the Rider icon on the taskbar or on the Start menu.
  • New modal dialogs (macOS only) - The new modal dialog UI in macOS Big Sur is now supported.
  • Toolbox manager for Windows Forms (Windows only) - Toolbox manager for Windows Forms designer has had a complete redesign.
    • The left part of the window shows you the list with all controls libraries, either system or third-party, grouped by controls vendor. The right pane shows you metadata for a selected control.
    • The new search in the middle pane cuts down the list of controls and highlights the search substring in the results list.
    • Added new counters at the bottom that show how many components will be removed or added to the Toolbox on saving.

Editor

  • Quick Documentation - Syntax highlighting has been added to the Quick Documentation window to provide the same highlighting you see in the code editor.
  • Font weight - Added a new typography settings which allow you to fine-tune the weight of your main and bold font styles.

XAML Previewer

  • Improved the XAML Preview tool, an essential feedback mechanism for WPF and XAML developers.
    • Rider now places the XAML Preview tool within the editor window itself, giving you the option to switch between many orientation and layout options. You can change the preview tool’s orientation to be vertically or horizontally separated from the editor.
    • The focused element will now be highlighted, so you get a little extra help when trying to find a specific UI element in an intricate UI design.
    • The tool now allows you to click through TabItem instances. This improves the experience of building multi-tab user interfaces.
    • The XAML Preview tool will now respect design properties such as DesignHeight and DesignWidth when rendering previews.
      • Please note, the XAML Preview is only available on Windows for applications targeting the Microsoft .NET Framework.

Code Styles

  • Formatting and Code Styles
    • You can now choose whether to set a space before and within target-typed new() parentheses.
    • You can specify wrapping before the assignment operator.
    • You can outdent label statements.
    • For custom naming rules, the order in which they are applied has been updated – more specific ones now go first.
    • Added a new Reindent only action for Format Selection. You can now tell Rider to only adjust the indents for the selected code instead of performing the whole reformatting process.
  • EditorConfig
    • Improved how Rider reads settings for naming rules from EditorConfig and writes the user-defined naming rules to EditorConfig.
    • If the naming rules are overridden in EditorConfig, Rider shows a notification on the naming settings page.
    • Added support for the csharp_indent_case_contents_when_block option in EditorConfig.

F# Support

  • Added new Inline Variable refactoring for local let bindings.
  • Rider can now calculate an allowed language level based on the project and compiler used in a build and suggest improvements to make your F# code more modern and up-to-date.
  • Added a new analyzer and quick fix to Interpolated String which aims to convert a printf-style format string to an F# 5 interpolated string.
  • Redundant parentheses analysis and the corresponding quick fix will help you with parentheses in patterns, types, and simple expressions.

Space Integration

  • The Space plugin is now available for Rider. You can connect to your organization in JetBrains Space via Get from VCS, located right on the welcome screen. Once logged in, you can view and clone project repositories, review your teammates’ code, and write Space Automation scripts.

Database Support

  • UI for grants - Added a UI for editing grants when modifying objects. The Modify user window now has a UI for adding grants to objects. These updates are available for PostgreSQL, Amazon Redshift, Greenplum, MySQL, MariaDB, DB2, Microsoft SQL Server, and Sybase.
  • System functions can be used unqualified (SQL Server) - System functions and procedures are no longer highlighted as errors when used unqualified. Navigation and completion now work for them as well.

Other Updates

  • NuGet Smart Restore on a build - Added NuGet Smart Restore on a build. It performs a restore on a build action when heuristics detect that an external restore was performed.
  • Build in parallel on Mono - Rider now supports building in parallel on recent versions of Mono.
  • External Dependencies in Find in Files - It is now possible to configure how Rider will treat external dependencies when searching for text.
  • JSON Lines support - Added support for the newline-delimited JSON Lines format, which is used for working with structured data and logs. The IDE will recognize .jsonl, .jslines, .ldjson, and .ndjson file types. Files in these formats contain several lines and each new line is a JSON object separated by a newline character. Commas are not required at the beginning or end of lines, and there is no need to enclose the entirety of the file contents in square or curly braces.
Rider improves Docker support.

Rider

Desarrolle aplicaciones .NET, ASP.NET, .NET Core, Xamarin o Unity en Windows, Mac o Linux.

Rider también está disponible en:

¿Alguna pregunta?

Chatee en vivo ahora mismo con nuestros especialistas en licencias de JetBrains.