Change the XAML editor options

You can change the font face, font size, and other options for the text that appears in the Code View tab. You cannot change the font color because XAML elements, attributes, and values are color-coded for easier XAML development.

To change the font

  1. On the Tools menu, click Options.

  2. In the Options dialog box, select Code editor.

  3. Next to Show settings for, select XAML editor.

  4. Under Font settings, select a Font and a Size.

  5. Click OK.

To change the tab size and word wrap options

  1. On the Tools menu, click Options.

  2. In the Options dialog box, select Code editor.

  3. Next to Show settings for, select XAML editor.

  4. Under Editor settings, select the tab size and word wrap options that you want.

  5. Click OK.

To restore the default XAML editor font and settings

  1. On the Tools menu, click Options.

  2. In the Options dialog box, select Code editor.

  3. Next to Show settings for, select XAML editor.

  4. Click Reset to Default.

  5. Click OK.

参照

処理手順

View your design or the XAML that defines your design

Modify a code-behind file

概念

Editing XAML