### Run Toolbox App Source: https://www.jetbrains.com/help/rider/Installation_guide.html Navigate to the Toolbox App installation directory and execute this command to start the application. This will initialize necessary files in ~/.local/share/JetBrains/Toolbox. ```bash ./bin/jetbrains-toolbox ``` -------------------------------- ### Generate Karma Configuration File (Windows) Source: https://www.jetbrains.com/help/rider/Running_Unit_Tests_on_Karma.html On Windows, first install the global Karma CLI, then run the `karma init` command to start the configuration wizard. ```bash npm installĀ -g karma-cli karma init ``` -------------------------------- ### Install Plugin via Command Line (Gateway CLI) Source: https://www.jetbrains.com/help/rider/Work_inside_remote_project.html This command installs plugins using the Gateway CLI before starting JetBrains Gateway. Note that third-party plugins will not be downloaded automatically without explicit consent. ```bash gateway installPlugins *idPlugin* ``` -------------------------------- ### Install IDE Plugins Remotely Source: https://www.jetbrains.com/help/rider/Remote_development_overview.html Use this command to install plugins from JetBrains Marketplace to the remote IDE backend. Requires a network connection. Example shows installing the IdeaVIM plugin. ```bash remote-dev-server installPlugins ... ``` ```bash remote-dev-server installPlugins IdeaVIM ``` -------------------------------- ### Corrected Unity Method Signature After Fix Source: https://www.jetbrains.com/help/rider/Unity.IncorrectMethodSignature.html This example demonstrates the `Start` method after the `Unity.IncorrectMethodSignature` inspection's quick-fix has been applied, correcting the signature to meet Unity's requirements. ```csharp public class MyScript : MonoBehaviour { // After fix: Signature corrected to match Unity's expectation public void Start() { return 42; } } ``` -------------------------------- ### Install Stylelint and Standard Configuration Source: https://www.jetbrains.com/help/rider/Using_Stylelint_Code_Quality_Tool.html Installs Stylelint and its standard configuration using npm. Ensure Node.js is installed and configured in your project. ```bash npm install --save-dev stylelint stylelint-config-standard ``` -------------------------------- ### Start Next.js Development Server Source: https://www.jetbrains.com/help/rider/Next.html Start the Node.js server for your Next.js application using the `npm start` command. This is typically configured automatically by JetBrains Rider. ```bash npm start ``` -------------------------------- ### Start ssh-agent Source: https://www.jetbrains.com/help/rider/Configuring_SSH_and_SSL.html Starts the ssh-agent process. Ensure this is running before adding keys. ```bash ssh-agent ``` -------------------------------- ### Install Prettier using npm Source: https://www.jetbrains.com/help/rider/Prettier.html Install Prettier as a development dependency or globally using npm. Ensure Node.js is installed first. ```bash npm install --save-dev --save-exact prettier ``` ```bash npm install --global prettier ``` -------------------------------- ### Example: DisableDateTimeNow Analyzer Usage Source: https://www.jetbrains.com/help/rider/Using_NET_Compiler_Analyzers.html This example demonstrates how to install and use the DisableDateTimeNow analyzer, which flags usages of `DateTime.Now` and suggests replacing them with `DateTime.UtcNow`. ```csharp public static class DateTimeExtensions { public static DateTime UtcNow(this DateTime dt) { return DateTime.UtcNow; } } ``` -------------------------------- ### Get help for jetbrains-clients-downloader Source: https://www.jetbrains.com/help/rider/Fully_offline_mode.html Run this command to display the help message for the jetbrains-clients-downloader script, showing all available options and syntax. ```bash jetbrains-clients-downloader -h ``` -------------------------------- ### Install SSH Keys on Remote Server Source: https://www.jetbrains.com/help/rider/Forward_credentials.html After generating SSH keys locally, use this command to install them on your remote server, enabling authentication for Dev Container setup. ```bash ssh-copy-id your_remote_server_name ``` -------------------------------- ### Example HTTP Request to check application output Source: https://www.jetbrains.com/help/rider/Node_with_docker.html An example of an HTTP GET request to a local host IP and container port, used for checking application output within JetBrains Rider. ```http GET http://127.0.0.1:3010/ ``` -------------------------------- ### Unity Profiler Begin Sample C# Source: https://www.jetbrains.com/help/rider/Reference__Templates_Explorer__Live_Templates_CSHARP.html Starts a profiling sample in Unity. Use the VAR parameter for the sample name. ```csharp UnityEngine.Profiling.Profiler.BeginSample("$VAR$"); ``` -------------------------------- ### Configuration Directory Syntax Examples Source: https://www.jetbrains.com/help/rider/Directories_Used_by_the_IDE_to_Store_Settings_Caches_Plugins_and_Logs.html Examples of default configuration directory paths for JetBrains Rider on different operating systems. ```plaintext %APPDATA%\JetBrains\ ``` ```plaintext C:\Users\JohnS\AppData\Roaming\JetBrains\Rider2026.1 ``` ```plaintext ~/Library/Application Support/JetBrains/ ``` ```plaintext ~/Library/Application Support/JetBrains/Rider2026.1 ``` ```plaintext ~/.config/JetBrains/ ``` ```plaintext ~/.config/JetBrains/Rider2026.1 ``` -------------------------------- ### Verify GPG setup on macOS Source: https://www.jetbrains.com/help/rider/set-up-GPG-commit-signing.html Execute these commands in Terminal on macOS to confirm GPG installation and that pinentry-mac provides a GUI prompt. ```bash gpgconf ``` ```bash echo GETPIN | pinentry-mac ``` -------------------------------- ### Install Plugin with eXtensions Source: https://www.jetbrains.com/help/rider/CleanupCode.html Use the `-x` or `--eXtensions` parameter to install and enable a plugin by its ID. Separate multiple plugin IDs with a semicolon. ```bash -x=StyleCop.StyleCop ``` -------------------------------- ### Example launchSettings.json with two profiles Source: https://www.jetbrains.com/help/rider/Running_LaunchSettings.html This JSON file defines IIS Express and a sample project profile, including IIS settings, command names, browser launch behavior, application URLs, and environment variables. ```json { "iisSettings": { "windowsAuthentication": false, "anonymousAuthentication": true, "iisExpress": { "applicationUrl": "http://localhost:43347", "sslPort": 44364 } }, "profiles": { "IIS Express": { "commandName": "IISExpress", "launchBrowser": true, "environmentVariables": { "ASPNETCORE_ENVIRONMENT": "Development" } }, "Sample": { "commandName": "Project", "launchBrowser": true, "applicationUrl": "https://localhost:5001;http://localhost:5000", "environmentVariables": { "ASPNETCORE_ENVIRONMENT": "Staging" } } } } ``` -------------------------------- ### Prefer GUID-based assembly references in Unity Source: https://www.jetbrains.com/help/rider/Unity.PreferGuidReference.html This example shows an assembly reference using an assembly name that should be converted to a GUID reference for better stability. ```json { "name": "Gameplay", "references": [ "Core" ] } ``` ```json { "name": "Gameplay", "references": [ "GUID:7d9f6c8edad14e1593fde9cc75764047" ] } ``` -------------------------------- ### Example Expanded TODO Live Template Source: https://www.jetbrains.com/help/rider/Creating_and_Editing_Live_Templates.html Shows an example of how the TODO live template expands in the editor with the current system date and username. ```text //TODO 02.07.2019 jsmith: ``` -------------------------------- ### Initialize Podman Machine Source: https://www.jetbrains.com/help/rider/Podman.html Use this command to initialize a new virtual machine for Podman. Ensure Podman is installed before running. ```bash $ podman machine init --rootful=true ``` -------------------------------- ### Create Nuxt Project with pnpm Source: https://www.jetbrains.com/help/rider/Nuxt.html Use this command in the embedded terminal to create a new Nuxt project with pnpm. The wizard will guide you through the setup process. ```bash pnpm create nuxt@latest ``` -------------------------------- ### Smart Step Into Example Source: https://www.jetbrains.com/help/rider/Debug_Tool_Window.html Demonstrates how to use Smart Step Into when a line contains multiple nested calls. This allows you to choose which function to step into. ```csharp Console.WriteLine(Foo(Bar("input") + Baz("input"))); ``` -------------------------------- ### Create Nuxt Project with yarn Source: https://www.jetbrains.com/help/rider/Nuxt.html Use this command in the embedded terminal to create a new Nuxt project with yarn. The wizard will guide you through the setup process. ```bash yarn create nuxt@latest ``` -------------------------------- ### Create Nuxt Project with npm Source: https://www.jetbrains.com/help/rider/Nuxt.html Use this command in the embedded terminal to create a new Nuxt project with npm. The wizard will guide you through the setup process. ```bash npm create nuxt@latest ``` -------------------------------- ### Start Podman Machine Source: https://www.jetbrains.com/help/rider/Podman.html After initialization, start the Podman virtual machine. This command is essential for enabling Podman services. ```bash $ podman machine start ``` -------------------------------- ### Verify GPG setup on Windows Source: https://www.jetbrains.com/help/rider/set-up-GPG-commit-signing.html Run these commands in GitBash to verify that GPG is correctly installed and configured on Windows. Ensure the pinentry program shows a GUI prompt. ```bash gpgconf ``` ```bash echo GETPIN | pinentry ``` -------------------------------- ### View Karma CLI Options Source: https://www.jetbrains.com/help/rider/Run_Debug_Configuration_Karma.html To see all available CLI options for Karma, use the command `karma start --help` in the Terminal. ```bash karma start --help ``` -------------------------------- ### Override Virtual Member with Code Completion Source: https://www.jetbrains.com/help/rider/Coding_Assistance__Code_Completion__Generative.html Start typing a base method name in a derived class to get a suggestion to override it. The method body with a default implementation will be generated. ```csharp public class Derived : BaseClass { protected override void DoSomething(int x, string s) { base.DoSomething(x, s); } } ``` -------------------------------- ### Install plugin from custom repository on Windows Source: https://www.jetbrains.com/help/rider/Install_plugins_from_the_command_line.html Use this command to install a plugin from a custom repository URL on Windows. Provide the plugin ID and the repository URL. Ensure JetBrains Rider is closed before running. ```bash rider64.exe installPlugins com.example.myplugin http://plugins.example.com:8080/updatePlugins.xml ``` -------------------------------- ### Execute Command in Docker Container Source: https://www.jetbrains.com/help/rider/docker_containers.html Examples of commands to execute inside a running Docker container. These commands can be used for listing files, creating directories, or starting a shell session. ```bash ls /tmp ``` ```bash mkdir /tmp/my-new-dir ``` ```bash /bin/bash ``` -------------------------------- ### Corrected Method Signature for Unity InvokeRepeating Source: https://www.jetbrains.com/help/rider/Unity.IncorrectMethodSignatureInStringLiteral.html This code shows the corrected version of the previous example. The `LaunchProjectile` method signature has been updated to match Unity's expectation for `InvokeRepeating`, which is a parameterless instance method. ```csharp using UnityEngine; public class Example : MonoBehaviour { void Start() { InvokeRepeating("LaunchProjectile", 1f, 1f); } private void LaunchProjectile() { } } ``` -------------------------------- ### Incorrect Unity Method Signature Reported Source: https://www.jetbrains.com/help/rider/Unity.IncorrectMethodSignature.html This example shows a Unity script where the `Start` method has an incorrect signature, being static, returning an int, and having an extra parameter. This will be flagged by the inspection. ```csharp public class MyScript : MonoBehaviour { // Reported: Start should be non-static void with no parameters public static int Start(int value) { return 42; } } ``` -------------------------------- ### Initialize Bower Project Source: https://www.jetbrains.com/help/rider/Using_Bower_Package_Manager.html Navigates to your project directory and initializes a new Bower project by creating a bower.json file. Follow the prompts to configure project settings. ```bash cd ``` ```bash bower init ``` -------------------------------- ### Get Current Directory Source: https://www.jetbrains.com/help/rider/Settings_DotCover_ContinuousTesting.html Retrieves the current working directory. This property points to the original test start folder if Shadow-copy assemblies and symbol files is selected, and to the temporary folder otherwise. ```csharp Environment.CurrentDirectory ``` -------------------------------- ### Install Plugin from Command Line (Windows) Source: https://www.jetbrains.com/help/rider/Managing_Plugins.html Use this command to install a plugin using its ID on Windows. Ensure the IDE is closed before running. ```bash rider64.exe installPlugins ``` ```bash rider64.exe installPlugins org.jetbrains.plugins.github ``` -------------------------------- ### Reported Redundant Accessor Body in C# Source: https://www.jetbrains.com/help/rider/RedundantAccessorBody.html This example shows a C# property where the 'get' accessor body is redundant and can be simplified. The 'set' accessor contains logic that prevents it from being a simple auto-property. ```csharp public string Name { get => field; set => field = value ?? throw new ArgumentNullException(nameof(value)); } ``` -------------------------------- ### Example Argument Formatting for External Tools Source: https://www.jetbrains.com/help/rider/Settings_Tools_Remote_SSH_External_Tools.html Demonstrates how to format arguments and paths, including spaces and escaped quotes, when configuring external tools. ```shell -Dmy.prop=\"quoted_value\" "second arg" third" "arg ``` -------------------------------- ### Bypass Third-Party Plugin Consent (Gateway CLI) Source: https://www.jetbrains.com/help/rider/Work_inside_remote_project.html Use this command to automatically install third-party plugins when JetBrains Gateway starts, bypassing the consent message. This is useful for pre-configuring your remote environment. ```bash gateway installPlugins *idPlugin* --give-consent-to-use-third-party-plugins ``` -------------------------------- ### XPath Index Zero Usage Example Source: https://www.jetbrains.com/help/rider/XPath_Inspections.html Highlights the incorrect usage of zero in XPath predicates. XPath indexes start at one, so using zero in a position comparison or directly as an index is typically a bug. ```XPath //someelement[position() = 0] ``` ```XPath //something[0] ``` -------------------------------- ### Dockerfile ARG Instruction Example Source: https://www.jetbrains.com/help/rider/Dockerfile_run_configuration.html Demonstrates how to use the ARG instruction in a Dockerfile to define build-time variables. These variables can be redefined using build arguments. ```dockerfile ARG PGTAG=latest FROM postgres:$PGTAG ``` -------------------------------- ### Introduce Field: Initialize in Constructor (Example 3) Source: https://www.jetbrains.com/help/rider/Specific_TypeScript_Refactorings.html Introduces a private field `_calcArea` and initializes it within the class constructor. This is useful when the field's initialization depends on constructor parameters or other setup logic. ```typescript class Rectangle { constructor(public height: number, public width: number) { this._calcArea = this.calcArea(); this.height = height; this.width = width; } private _calcArea: number; get area() { return this._calcArea; } calcArea() { return this.height * this.width; } } ``` -------------------------------- ### Example: Namespace Indentation (all) in C++ Source: https://www.jetbrains.com/help/rider/EditorConfig_CPP_CppOtherPageScheme.html Demonstrates C++ namespace indentation with the 'all' setting. ```cpp namespace ns { void a(); namespace inner { void b(); }; }; ``` -------------------------------- ### System Directory Syntax Examples Source: https://www.jetbrains.com/help/rider/Directories_Used_by_the_IDE_to_Store_Settings_Caches_Plugins_and_Logs.html Examples of default system directory paths for JetBrains Rider caches and local history on different operating systems. ```plaintext %LOCALAPPDATA%\JetBrains\ ``` ```plaintext C:\Users\JohnS\AppData\Local\JetBrains\Rider2026.1 ``` ```plaintext ~/Library/Caches/JetBrains/ ``` ```plaintext ~/Library/Caches/JetBrains/Rider2026.1 ``` ```plaintext ~/.cache/JetBrains/ ``` ```plaintext ~/.cache/JetBrains/Rider2026.1 ``` -------------------------------- ### Get Assembly Code Base Source: https://www.jetbrains.com/help/rider/Settings_DotCover_ContinuousTesting.html This property can lead to the original test start folder if Shadow-copy assemblies and symbol files option is selected, or the temporary folder otherwise. Useful for NUnit tests with relative path references. ```csharp Assembly.GetExecutingAssembly().CodeBase ``` -------------------------------- ### Install Avalonia Project Templates Source: https://www.jetbrains.com/help/rider/Avalonia.html Run this command in the terminal to install the necessary Avalonia project templates for creating new applications. ```bash dotnet new install Avalonia.Templates ``` -------------------------------- ### Introduce Field: Initialize in Enclosing Method (Example 1) Source: https://www.jetbrains.com/help/rider/Specific_TypeScript_Refactorings.html Introduces a private field `_calcArea` and initializes it within the `get area()` method. Use this when the field's value is computed on demand within a specific method. ```typescript class Rectangle { constructor(public height: number, public width: number) { this.height = height; this.width = width; } private _calcArea: number; get area() { this._calcArea = this.calcArea(); return this._calcArea; } calcArea() { return this.height * this.width; } } ``` -------------------------------- ### Install typescript-tslint-plugin Source: https://www.jetbrains.com/help/rider/vue_js.html Install the plugin using npm. Ensure TypeScript is installed in your project. ```bash npm install --save-dev typescript-tslint-plugin ``` -------------------------------- ### Select npm Run Configuration Source: https://www.jetbrains.com/help/rider/Next.html Choose an npm run configuration from the Run widget on the toolbar to start your Next.js application. This includes autogenerated or custom configurations. ```bash Next.js: server-side ``` -------------------------------- ### VB.NET Method Signature Example with Numbered Suffix Source: https://www.jetbrains.com/help/rider/Settings_Inlay_Hints_VB_Parameter_Name_Hints.html Demonstrates a scenario where parameter name hints can be hidden when calling methods with signatures that only differ by a numbered suffix. ```vbnet Sub DoSomething(arg0 As Integer, arg1 As Integer, arg2 As Integer, arg3 As Integer) '{/*...*/} End Sub ``` -------------------------------- ### Short Form for GET Requests Source: https://www.jetbrains.com/help/rider/Exploring_HTTP_Syntax.html Shows how to omit the GET method for simple GET requests, specifying only the URI. ```http // A basic request https://example.com/a/ ``` -------------------------------- ### Install Plugin from Command Line (Linux) Source: https://www.jetbrains.com/help/rider/Managing_Plugins.html Use this command to install a plugin using its ID on Linux. Ensure the IDE is closed before running. ```bash rider.sh installPlugins ``` ```bash rider.sh installPlugins org.jetbrains.plugins.github ```