Replace Global Modifier Quick Fix

Replaces 'Global' access modifier with the equivalent 'Public' keyword.

This quick-fix is available for the ObsoleteGlobal inspection

Applicability

This quick-fix can be applied as a single operation at the following scopes:
  • Module
  • Project

Examples

 This example depicts the state of module(s) before and after applying the quick-fix.

Before
Module1 (Any)
Option Explicit Global Something As Long
After
Module1 (Any)
Option Explicit Public Something As Long

Rubberduck.CodeAnalysis.QuickFixes.Concrete.ReplaceGlobalModifierQuickFix.cs (Prerelease-v2.5.2.6174)