Add and remove courtesy accidentals
Three basic plugins for MuseScore v2, v3 or v4:
this plugin will add courtesy accidentals to the selection or to the whole score, if nothing is selected. It uses the "next measure, same octave" rules.
this plugin opens a dialog first where you can configure the rules when to add accidentals and if you want them to be parenthesized.
this plugin will remove all accidentals that are not needed from the selection or the whole score, if nothing is selected. It will thus remove all accidentals created with the 'addCourtesyAccidentals' plugin, but will not limit itself to these. It'll also remove courtesy accidentals you created yourself.
MuseScore version 4
MuseScore 4 has this plugin built in
MuseScore version 3
Please note that MuseScore v3.0.5 or higher is needed. These plugins will not work with versions 3.0 - 3.0.4
MuseScore version 2