Opening files in Code view by default
When you open a file type that normally doesnt contain any HTML (for example, a JavaScript file), the file opens in Code view (or Code inspector) instead of Design view. You can specify which file types open in Code view.
To set the default view for non-HTML files:
- Select Edit > Preferences (Windows) or Dreamweaver > Preferences (Macintosh).
- Select File Types/Editors from the Category list on the left.
The File Types/Editors preferences appear.
- In the Open in Code View text box, add the filename extension of the file type you want to open automatically in Code view.
Type a space between filename extensions. You can add as many extensions as you like.
Related topics
- Setting the File Types/Editors preference options