skip to Main Content

As a team we’d like to have a "soft long lines" setting: Instead of hard-wrapping a too long code line, we’d love to see a warning so that a developer can take action – or intentionally leave the code as it is.

What we found out so far: you can either hard-wrap or not. But we did not find the space in-between – to just be warned.

We are running a mixed Visual Studio with ReSharper and Rider environment with common code style rules in a "DotSettings" file.

2

Answers


  1. Pretty sure ReSharper or Visual Studio can’t warn you about long lines but take a look at Sonar static code analyzers (SonarLint or SonarQube) They have a rule for long lines

    They have an extension for Visual Studio but I have found adding the NuGet package works well and can be configured

    Login or Signup to reply.
  2. I’ve filled the feature request in YouTrack: https://youtrack.jetbrains.com/issue/RSRP-495222/Add-the-warning-that-the-line-is-too-long, you are welcome to comment on it and vote.
    Thank you!

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search