views:

73

answers:

2

I recently had a bug in Firefox due to me choosing the wrong script type with intellisense.

<script type="text/jscript">

vs

<script type="text/javascript">

Is it possible to remove options from intellisense?

EDIT: I still want statement completion, just not all the options.

+1  A: 

Tools ---> Options ----> Text Editor ----> All Languages

Uncheck statement completion.

Siege898
I still want statement completion, just not all the options.
rick schott
@Siege, I don't think that's precisely what the OP's after, I'm guessing they want to be able to remove "text/jscript" from the list of options presented by intellisense, not nuke it entirely
Rob
Ah sorry. For individual options, Rob's solution seems great. I've never experimented it with removing the individual options, but always assumed it was possible via the .xsd files.
Siege898
+1 since I wasn't clear before the edit.
rick schott
+4  A: 

If you take a look at the .xsd files in C:\Program Files\Microsoft Visual Studio 9.0\Common7\Packages\schemas\html\ (your directory structure will vary obviously, based on your OS bitness and system drive letter), you'll find several instances of the string text/jscript.

Use Visual Studio to do a find in files across the whole directory and remove values of <xsd:enumeration value="text/jscript" />, that should eliminate it from Visual Studio's intellisense.

Note: I recommend taking a copy of the files first

Rob
I've removed the "I think"/"haven't tried it yet", as I have, and it worked for me
Rob
Awesome, it worked for me as well, thanks!
rick schott