Syntax prompts

I am working on a project that uses strings as parameters for RegEx expressions, is it possible to get Rider to prompt for a regex expression based on a hint or is it not possible?

0
4 comments

Maybe you can try with AI Assistant. Try to generate some samples based on the RegEx declaration or generate RegEx from some text data.

-1

I don't think that you understand what i am asking.

What i want is the same pprompt when I type Regex.Match(stringVariable,  … The IDE shows the options for a regex expression.

What I am wanting to do is have the same functionality for a method parameter or similar. It is a small thing and I am not sure if what i am asking for is possible. 

For example:

public static string DoSomethingWithARegex(string AValue, string Expression){  }

So whenI write that method out the Regex expression hints are displayed. 

There may be a keyboard shorcut that displays this hint I don't know (not good a RTFM)

 

0

Ah, are you seeking the feature to add RegEx type assistance for a string? Put the caret in the string then press Alt+Enter for Context Actions, enable the feature.

For other usages you can refer to this documentation.

1

Ah thanks!!!! Knew it would be something simple! 

This is why I love this IDE over VS!!!

1

Please sign in to leave a comment.