When coding in scala in IntelliJ IDEA, sometimes will the IDE suggest to replace .size == 0
by .isEmpty
. Some other times, when calling a printf
, will the IDE check that the number of variadic arguments matches what's in the format and that they have the expected type...
Let's say I create a class/method, that could require editor-level replacement suggestions or argument checks, as you can with C# annotations make your classes do pretty prints in debugging sessions, could we add something (annotations?) so that the user of that class/method receives these replacement suggestions or has their arguments checked in their favorite editor (let's say IntelliJ IDEA, but that shouldn't be limited to that)?
Do custom annotations for custom editor-level suggestions or checks exist?