How to: Change Text Case in the Editor

Note

This article applies to Visual Studio 2015. If you're looking for the latest Visual Studio documentation, use the version selector at the top left. We recommend upgrading to Visual Studio 2019. Download it here

You can use menu commands or keyboard shortcuts to convert the case of selected text to all upper case or to all lower case.

Note

The dialog boxes and menu commands you see might differ from those described in Help depending on your active settings or edition. To change your settings, choose Import and Export Settings on the Tools menu. For more information, see Customizing Development Settings in Visual Studio.

Procedure

To switch text to upper case

  1. Select the text you want to convert.

  2. On the Edit menu, select Advanced.

  3. To convert text to all upper case, choose Make Uppercase, or press CTRL+SHIFT+U.

    — or —

    To convert text to all lower case, choose Make Lowercase, or press CTRL+U.

    Tip

    To revert to the previous case formatting before this change, select Undo from the Edit menu.

See Also

Customizing the Editor Text Editor Options Dialog Box Writing Code