JetBrains Fleet 1.10 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

Make sure you are logged in JetBrains Toolbox under your JetBrains Account.

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 on creating and opening .NET solutions, see 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.

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 — see 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 on code inspection and quick-fixes, see 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 on available navigation commands, see 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 — see Search C# code for details.

Reformat code

To reformat code, press ⌘⇧L 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.

To learn more about formatting settings, see 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 on running and debugging, see Run and debug C# code.

Last modified: 25 November 2022