Remove Type Hints Quick Fix

Removes type hint characters from identifier declarations and value literals.

This quick-fix is available for the ObsoleteTypeHint inspection

Applicability

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

Examples

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

Before
Module1 (Any)
Option Explicit Public Sub DoSomething() Dim message$ message$ = "Hi" MsgBox message$ End Sub
After
Module1 (Any)
Option Explicit Public Sub DoSomething() Dim message As String message = "Hi" MsgBox message End Sub

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