Problem: Keywords override region

Answered

When I use a reserved keyword in a region name, it overrides the region, deletes it and starts the line from the keyword.

I often use region to contain "Private Fields" and "Public Fields" so I wish to turn off this behaviour.

0
4 comments

Rider 2017.3 should not replace "#region" with "private" in this case if you don't press Enter or Tab while typing it. If you don't want Rider to autocomplete #region name at all, then please vote for https://youtrack.jetbrains.com/issue/RIDER-10150

0
Avatar
Permanently deleted user

It autocompletes when I click space after typing private.

0

Ah, I see. It must be "Insert selected variant by typing dot, space, etc." which is turned on in Rider Settings ("File | Settings | Editor | General | Code Completion"). Anyway, this is a good bug to fix. Thanks for your feedback!

0
Avatar
Permanently deleted user

Maybe it's a good idea to separate between dot, tab and space or even just space because it has completely different uses.

0

Please sign in to leave a comment.