Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

HTML5 Javascript API Intellisense support in visual studio

I started playing with HTML5/CSS3 and the new JavaScript API

something i noticed in VS 2010 is it doesn't have any support for the new JavaScript API i was wondering if there is anything i can do about it

so in Vs2010 if i type :

     var canvas = document.getElementById('diagonal');
     var context = canvas.getContext('2d');

i don't get any intellisense for the "getContext" method etc..

i dont wanna write the code and compile and pray it works.

any idea how can i enable intellisense for new javascript ?

like image 497
Stacker Avatar asked Sep 22 '11 12:09

Stacker


People also ask

Does Visual Studio support IntelliSense?

Visual Studio Code IntelliSense is provided for JavaScript, TypeScript, JSON, HTML, CSS, SCSS, and Less out of the box. VS Code supports word based completions for any programming language but can also be configured to have richer IntelliSense by installing a language extension.

How do I enable IntelliSense in Visual Studio?

To access this options page, choose Tools > Options, and then choose Text Editor > C# > IntelliSense.

Does Visual Studio 2019 have IntelliSense?

We've made many great improvements to C++ IntelliSense over the course of the Visual Studio 2019 release.


2 Answers

vsdoc documentation for Canvas for Visual Studio 2010:

http://abstractform.wordpress.com/2010/02/18/canvas-intellisense-auto-completion-in-visual-studio/

like image 97
Misha Ts Avatar answered Sep 22 '22 19:09

Misha Ts


I know you tagged VS2010, but the Visual Studio 11 Developer Preview, and presumably the eventual RTM, natively supports HTML5 intellisense, including support for canvas.

IntelliSense for DOM APIs has been improved, with support for many new HTML5 APIs including querySelector, DOM Storage, cross-document messaging, and canvas. DOM IntelliSense is now driven by a single simple JavaScript file, rather than by a native type library definition. This makes it easy to extend or replace.

like image 45
Peter Majeed Avatar answered Sep 24 '22 19:09

Peter Majeed