How to remove the purple “duplicated code fragment” highlighting in PhpStorm?

  • Simply hit the ESC key to remove that highlighting.

  • If the IDE is finding “Duplicate code fragments” between your source code and a copy of it in an output directory (like Python setup.py creates in a build/ directory; I don’t know how this goes in PHP), then mark the output directory as excluded from source directories.

    Right-click the output directory in the Project View, then Mark Directory As > Excluded.

BTW, this works in PyCharm and IntelliJ as well, and presumably in all the JetBrains IDEs.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)