Enable knockout intellisense in Visual Studio 2010 - visual-studio-2010

I have a new .js file, and I have added a reference like this.
/// <reference path="knockout-3.3.0.debug.js" />
I am still not able to get the intellisense up and running for Visual Studion 2010 SP1
I am simple trying the - ko.applyBindings ...doesn't work
Is there anything that I am missing to make the intellisense work?

Related

Does Visual Studio have CSS intellisense?

I have Visual Studio 2015 and Visual Studio Code but I don't have intellisense for CSS. Does Visual Studio support intellisense for CSS?
Thanks!
Yes. Basically. When editing a .css file, and creating a style, and I type "font-" I will get intellisense that gives me options to auto complete with options like "font-family" and "font-size". When I type "border:", I'll get intellisense showing me possible values such as "dashed", "dotted", and "none" etc.

TypeScript in Visual Studio 2013

I very new to TypeScript. What is the right way of using TypeScript in Visual Studio 2013 update 3? Firstly i installed TypeScript for Visual Studio 2013. But i did not get anything. When i uninstalled TypeScript for Visual Studio 2013 extension and installed web essentials for VS 2013 update 3. I actually got type script support but only when i make new project. For existing project made with VS 2013 too i can not get compile on save. I checked Tools-> options-> Text editor-> TypeScript > Project to Enable Automatic compiling, but in this section VS tells me that some error occurs during loading. Recently i figured out that VS 2013 should have typescript support out of box. Is this mean that i don`t need Web Essentials? I just want to get compiling on save for VS 2013 what should i do?
To convert existing web project to Typescript aware and get Typescript Build tab in project properties you will need to add a bunch of stuff into your project file via text editor.
Add the following element at the top of Project element:
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)\TypeScript\Microsoft.TypeScript.Default.props" Condition="Exists('$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)\TypeScript\Microsoft.TypeScript.Default.props')" />
Add the following to conditionless PropertyGroup element
<TypeScriptToolsVersion>1.4</TypeScriptToolsVersion>
or 1.1 if I remember correctly previous version in case you have not 1.4 installed
Final nugget should go to the bottom of Project lemenet
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)\TypeScript\Microsoft.TypeScript.targets" Condition="Exists('$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)\TypeScript\Microsoft.TypeScript.targets')" />
This helped me once, but perhaps those instructions are too cumbersome and it will be easier to create new Typescript project and see what is in there related to Typescript

Visual Studio 2012 - new curios Errors in Xaml

I use Visual Studio 2012 with .NET 4.0 (C#).
Now, I have added a Image in the Xaml:
<Image Source="/PPPos.Common.Images;component/Application/Pos.jpg" Stretch="Fill" />
The Image Pos.jpg is included in the referenced Assembly PPPos.Common.Images.DLL as Resource.
Visual Studio 2012 gives me now the fallowing Exception in the ErrorList:
Error 2 Could not find a part of the path
'C:\PPPos.Common.Images;component\Application\Pos.jpg'.
But I can compile the Source without Problem and the Image will be shown when I run the Application.
This is also new with Visual Studio 2012 - there was no errormessage in the ErrorList with Visual Studio 2010.
Has someone an idea, what there could be wrong?
Works for me if you prefix the Source value with the "pack://application:,,,", in VS2012 and VS2013.
But I have reported this issue as a bug to the Visual Studio Team, because it is a new bad feature compare to VS2010, where you don't have to add this prefix. For behind compatibility the Visual Studio Team should fix it.
after long searching I found the solution
<Image Source="pack://application:,,,/PPPos.Common.Images;component/Application/Pos.jpg" Stretch="Fill" />
however I still do not know why this is the case in VS2013.
Any explanation will be appreciated.

Visual Studio 2010, xsl:fo intellisense

Is there any way to activate intellisense for xsl:fo documents? Writting all that tags is horrible, and I couldn't find any solution on my own.
I know that I could install another editor, but I've already get used to VS.
You need to add the FO schema/DTD C:\Program Files (x86)\Microsoft Visual Studio 9.0\Xml\Schemas. It is located at the link in the page http://www.xmlpdf.com/faq.html#13. This will allow you to add intellisense for FO markup.

facebook platform visual studio 2010 intellisense

does it exist a way to make intellisense work with <fb: tag?
No, Visual Studio 2010 nor the Facebook C# SDK does not have intellisense for fb tags. You would have to write your own schema for visual studio.

Resources