Add files to a local Mercurial repository
After a Mercurial repository for a project is initialized, you need to add the project data to it:
If you have specified Mercurial as the version control system for your project in the Settings dialog, JetBrains Rider suggests to put each new file under Mercurial control during the file creation.
You can add all unversioned files to Mercurial control or select files to add.
To add all currently unversioned files to Mercurial control
Open the Commit tool window
Navigate to the Unversioned Files node and choose from the context menu.
To add specific file(s) to a local Mercurial repository, do one of the following:
Switch to the Commit tool window , expand the Unversioned Files node, and select the files to be added. From the context menu, choose .
To specify the commit options
If you need to perform pre-commit checks, upload files to a server after the commit, or commit with advanced options, click :
In the Before Commit area, select the actions you want JetBrains Rider to perform before committing the selected files to the local repository.
The following options are available:
Reformat code: perform code formatting according to the code formatting rules.
Rearrange code: rearrange your code according to the file and type layout preferences.
Optimize imports: remove redundant import statements.
Check TODO (<filter name>): Review the TODO items matching the specified filter. Click Configure to choose an existing TODO filter, or open the TODO settings page and define a new filter to be applied.
Cleanup: batch-apply quick-fixes from code cleanup inspections. Click Choose profile to select a profile from which the IDE will run inspections.
Switch to the Project tool window and select the files to be added. From the context menu, choose .