JustCode

The Remove Unreachable Section quick fix is available once JustCode has detected an unreachable section in the code.

Note

Language Support

Supported: C#

Not supported: VB.NET

Not relevant: ASP.NET, XAML, JavaScript, HTML

Example

If you have an unreachable section:

Unreachable Section Example

Unreachable Section Example

JustCode will automatically underline the unreachable section.

To remove the unreachable section

  1. Position the caret over the underlined warning.

    Unreachable Section Select
  2. Press Alt+Enter. From the pop-up menu, select Remove Unreachable Section.

    Unreachable Section Result

See Also

Other Resources