Highlighting string parameters

Answered

Hello Rider Community,

I've been using Rider for Unity for quite a while. Rider perfectly highlights Debug.LogFormat arguments and I want the same for my custom code. Any way to do it?

Cheers,
Vlad

0
2 comments

Hello Vlad!
You can add `[StringFormatMethod]` attribute to the declaration of method, so ReSharper/Rider can understand that a string parameter inside of it has a special meaning.

See more information here

Thanks! 

1
Avatar
Permanently deleted user

It worked, thanks :) 

0

Please sign in to leave a comment.