David MZ
David MZ

Reputation: 3718

Dreamweaver CS5 opening .CSHTML razor files

Is there a way to force Dreamweaver to open .CSHTML files as HTML file in editor, so I can use the code completion and all the other feature on a .CSHTML file

I was only been able to force it to open it in the code editor which doesn't have all the design features.

Upvotes: 3

Views: 9271

Answers (2)

daniel blythe
daniel blythe

Reputation: 1048

Could I just recommend that if anyone is trying to open .CSHTML files in Dreamweaver and it is opening in TextEdit(Mac). What I did to solve this issue is to go to Preferences > File Types / Editors.

From here add ' .cshtml' to the "Open in code view" text box(note the space before the period, this is required).

Next I clicked the "+" symbol above "Extensions" list of file types, then added '.cshtml' to this list.

Close and reopen Dreamweaver and you should find that when you try and open a .CSHTML file(particularly opening the file via a 'Remote server' connection).

Daniel.

Upvotes: 4

Darin Dimitrov
Darin Dimitrov

Reputation: 1038790

You may take a look at the following article.

Upvotes: 5

Related Questions