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 ?
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.
To access this options page, choose Tools > Options, and then choose Text Editor > C# > IntelliSense.
We've made many great improvements to C++ IntelliSense over the course of the Visual Studio 2019 release.
vsdoc documentation for Canvas for Visual Studio 2010:
http://abstractform.wordpress.com/2010/02/18/canvas-intellisense-auto-completion-in-visual-studio/
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With