## Reformatting a Source File

You can reformat a source file to use any of the preset code styles in the Code Style preference panel.

#### To reformat a source file

1. Verify the correct code style is set in the Code Style preference panel
2. Open an editor view with the source file you want to reformat
3. Right-click and choose Source > Format (CTRL+SHIFT+F)

Figure 1 -Selecting Source > Format from an editor view

##### Related references

- Code Style preferences
- Setting the Workspace Code Style