JetBrains Fleet 1.33 Help

Getting started with C#

JetBrains Fleet helps you develop C# code in .NET/.NET Core and ASP.NET Core projects, bringing a ton of code intelligence features from well-known JetBrains .NET tools — ReSharper and Rider.

Prerequisites

Download and install Fleet

Download and install JetBrains Toolbox.

In JetBrains Toolbox, click Install near the JetBrains Fleet icon.

Download and install Fleet

Open a solution

When you launch Fleet from the Toolbox, press ⌘ O or choose File | Open from the menu, then select a directory where the .sln file of the target solution resides.

For more information about creating and opening .NET solutions, refer to Manage .NET (C#) solutions, projects, and files.

Enable Smart Mode

You can use JetBrains Fleet as a smart text editor, rather than a full-fledged IDE. However, if you need code intelligence features, you can enable them by turning the Smart Mode on. To do so, click the Smart Mode Status icon on the toolbar, then click Enable.

JetBrains Fleet: Enable Smart Mode

JetBrains Fleet will index the sources, which may take some time. When the indexing is finished, you will recognize the smart mode by the green icon on the toolbar and syntax highlighting in your source files.

Some of the features described below, such as typing assistance, navigation, and search, are partially available even without Smart Mode. However, Smart Mode uses the knowledge of your solution and project structure to unlock the full potential of those features. For example, you will have more precise suggestions in code completion and better navigation results.

Configure .NET toolchains

Smart Mode relies on .NET toolchains when indexing your solution. In most cases, toolchains are detected automatically, but if you have a custom setup, you may need to configure .NET CLI and MSBuild for your solution:

  1. Press ⌘ , and switch to the tab with the solution settings.

  2. Make sure that the proper .NET CLI and MSBuild are selected:

    .NET CLI and MSBuild are configurable in JetBrains Fleet settings

Type less, get more

Typing a couple of characters is normally enough to pick the desired identifier from the completion list, or you can get some suggestions by pressing ⌃ Space.

JetBrains Fleet: Code completion list

You can also get a lot of assistance when typing dots, delimiters, or pressing — refer to Code completion in C# and Typing assistance in C# for more information. On top of that, completion suggestions include live, postfix, and source templates.

Detect and fix code issues

When Smart Mode is enabled, errors, warnings, and other code issues are underlined in the editor, and you can fix most of them by pressing ⌥ ⏎.

JetBrains Fleet: Apply quick fixes with Alt+Enter

For more information about code inspection and quick-fixes, refer to Inspect and fix C# code.

Transform code with context actions

You can also use ⌥ ⏎ to invoke context actions that help you transform existing code and generate new code constructs. For example, press ⌥ ⏎ on a parameter to generate a field, property, or a null-check:

JetBrains Fleet: Local code transformations

The declaration of a symbol as well as any of its usages provide multiple navigation destinations across the codebase of the whole solution. For example, press ⌘ U on a declaration or any usage of a type to list all usages of this type in your solution and then preview or jump to any of them:

JetBrains Fleet: Find usages in C#

For more information about available navigation commands, refer to Navigate C# code.

Find anything in your codebase

You can press ⌘ K to find any type, member, or file in your solution. When you invoke this command, you will see recently visited items. Start typing to narrow down the search.

JetBrains Fleet: Find code items in C#

There are also dedicated commands that limit your search to symbols, files, or members in the current file — for more information, refer to Search C# code.

Reformat code

To reformat code, press ⌥ ⇧ F or choose Code | Reformat Code from the menu. If there is a selection, only the selection is reformatted; if there is no selection, JetBrains Fleet will reformat the whole file.

For more information about formatting settings, refer to Reformat C# code.

Rename symbols

To rename a symbol and all its usages in the current solution, press ⌃ R (you can start either at the declaration or at any usage). JetBrains Fleet will show how many usages there are in the solution, and then you type a new name right over the old one and press to apply the refactoring.

JetBrains Fleet: Rename refactoring

Run and debug

If you have a .NET project of an executable type, you can run or debug it without any additional configuration — press ⌘ R, and then click Run or Debug next to the corresponding configuration:

JetBrains Fleet: Run .NET console application

If you choose to debug the configuration, the Debug window will open where you can control the debugging session:

JetBrains Fleet: Debug .NET console application

For more information about running and debugging, refer to Run and debug C# code.

Last modified: 15 April 2024