0

In Rider (JetBrains), I would like to show the code of our projects in a different style than they actually are. We have a linter with quite weird rules. I do accept the linter and I apply it to my code. But when viewing own code, is there some sort of functionality to show it in a different style while not affecting the linter?

Maybe the old {} discussion is a good example. If the editorconfig says they should be in the next line, but I want them in the same line, the actual code would be:

if(something)
{
  return 40;
}

but viewing the code, it would look like this:

if(something) {
  return 40;
}

I tried a lot of settings in the editor, but I always felt the settings are quite messy, so I didn't find that functionality.

Is this actually possible to achieve?

1 Answer 1

0

please try to turn on Reader mode.

The code can be virtually reindented, but it is impossible to insert or remove line breaks virtually.

Thank you!

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.