Getting started with C#
Download and install Fleet
In JetBrains Toolbox, click Install near the JetBrains Fleet icon.
Open a solution
When you launch Fleet from the Toolbox, press ⌘O or choose .sln file of the target solution resides.from the menu, then select a directory where the
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 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.
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 ⌥↵.
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:
Navigate your solution code
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:
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.
There are also dedicated commands that limit your search to symbols, files, or members in the current file — see Search C# code for details.
To reformat code, press ⌘⇧L or choosefrom 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.
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.
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:
If you choose to debug the configuration, the Debug window will open where you can control the debugging session:
For more information on running and debugging, see Run and debug C# code.