Add and remove courtesy accidentals
Three basic plugins for MuseScore v2 or v3:
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 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