Fixing Visual Studio 2012 Intellisense for WinJS Files

Posted by: the telerik blogs, on 20 Nov 2012 | View original | Bookmarked: 0 time(s)

I have been frustrated by Intellisense acting up when working on WinJS Windows Store applications.  Figure 1 is just an example of the quirky behavior that Ive been experiencing:

Image 1

Fortunately, the fix is extremely easy, and I picked it up from Adam Freemans book on Apress Metro Revealed: Building Windows 8 apps with HTML5 and Javascript

Add references in your JavaScript files to ui.js and base.js.  You can do this by dragging the files from your solution explorer.  They are located by expanding Windows Library for JavaScript 1.0, and then the js  folder.  Make sure you include the triple swack at the beginning of the line so VS know that they are a reference.  A double swack wont work.

Once you do, youll find that Intellisense works wonderfully!


About the author

Philip Japikse

2012STLDODN.93x112 Philip Japikse an international speaker, a Microsoft MVP, INETA Community Champion, MCSD, CSM/ CSP, and a passionate member of the developer community, Phil Japikse has been working with .Net since the first betas, developing software for over 20 years, and heavily involved in the agile community since 2005. Phil works as a Developer Evangelist for Telerik's RadControls for Windows 8 as well as the Just family of products (JustCode, JustMock, JustTrace, and JustDecompile) and hosts the Zero To Agile podcast ( Phil is also the Lead Director for the Cincinnati .Net Users Group ( You can follow Phil on twitter via and read his personal blog at
!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);;js.src="//";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");

Category: Agile | Other Posts: View all posts by this blogger | Report as irrelevant | View bloggers stats | Views: 1356 | Hits: 21

Similar Posts

  • Running VisualSVN Server for Subversion Source Control more
  • VS2008 Web Server Here Shell Extension more
  • LINQPad as a Code Snippet Execution Engine more
  • Apache and ScriptMaps - It's killing me! more
  • Javascript Intellisense in Visual Studio "Orcas" more
  • XSD Schema Files For VS.NET more
  • Visual Studio 2005 Service Pack 1 (SP1) Released more
  • Debugger Visualizer for BizTalk 2006: MessageContext more
  • Tips for writing Debugger Visualizers in VS.NET 2005 more
  • Visualizers For Web Debugging more

News Categories

.NET | Agile | Ajax | Architecture | ASP.NET | BizTalk | C# | Certification | Data | DataGrid | DataSet | Debugger | DotNetNuke | Events | GridView | IIS | Indigo | JavaScript | Mobile | Mono | Patterns and Practices | Performance | Podcast | Refactor | Regex | Security | Sharepoint | Silverlight | Smart Client Applications | Software | SQL | VB.NET | Visual Studio | W3 | WCF | WinFx | WPF | WSE | XAML | XLinq | XML | XSD