I'm using TextMate on a Mac as a front end designer and trying to open cshtml (razor) views to just tweak html, but the html intellisense does not trigger. How do i get html intellisense on the cshtml files?
-
I'm pretty sure TextMate doesn't have razor support. – Chase Florell Jul 23 '11 at 18:29
-
I don't care so much about the razor support as the html intellisense. It could be any other custom code in there and any custom file extension, but how do i get intellisense for html. – Vlad Enache Jul 23 '11 at 19:09
-
my only thought would be to figure out how to associate the `cshtml` file extension with the `html` markup engine. – Chase Florell Jul 23 '11 at 23:11
2 Answers
TextMate doesn't have HTML intellisense. It has language-specific tab completion and dumb attribute completion on some languages but nothing that comes close to Visual Studio's "intellisense" or Eclipse's "content assist".
If you want to use its HTML-related features you only have to select HTML in the "Language" menu at the bottom of the window.
That said, I just saved a sample of .cshtml from a random tutorial and TextMate recognizes it as HTML automatically so I'm not sure what's going on.
There are a couple of ASP.NET oriented HTML bundles available, did you try them ?

- 186,200
- 21
- 280
- 313
Here's some information I found on associating file types in textmate. Hopefully it will be of assistance.
https://superuser.com/questions/40506/textmate-file-type-association
http://blog.macromates.com/2007/file-type-detection-rspec-rails
Ultimately, you need to tell TextMate to use the html
engine with any file that has a cshtml
or vbhtml
extension.

- 1
- 1

- 46,378
- 57
- 186
- 376