Skip to content

Update OptionsPages.md #85

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Features/OptionsPages.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ The `OptionsPage` attribute requires the plugin author to provide the following

In addition, you may specify the following optional parameters:

* `ParentId` lets you define the ID of the section or element which serves as this page's parent. If you want the parent to be one of the known ReSharper items, look inside the `JetBrains.UI.Options.OptionsPages` namespace for the corresponding pages, and then use their `Pid` as this parameter. For example, for an options page to appear in the Environment section, you specify the `ParentId` of `EnvironmentPage.Pid`.
* `ParentId` lets you define the ID of the section or element which serves as this page's parent. If you want the parent to be one of the known ReSharper items, look inside the `JetBrains.Application.UI.Options.OptionPages` namespace for the corresponding pages, and then use their `Pid` as this parameter. For example, for an options page to appear in the Environment section, you specify the `ParentId` of `EnvironmentPage.Pid`.
* `Sequence` lets you define the location of the item you are inserting in relation to the other items. Items are placed in order, so the higher this value, the further this page will be in the list of items. Of course, to accurately position the item, you need to know the `Sequence` value of its siblings. Luckily, this information is available in the metadata.

Having specified the attributes, your class will appear as follows:
Expand Down