How do I implement a header source switch? - visual-studio-2012

As the title says, the IDE I am using is Visual Studio 2012 Express.
MS Dev 2012 Express does not support ad-ins (like PhatStudio) or macros. Is there any other way of doing this other than using the goto definition function in the right click menu.
I would like a method which allows me to use a keyboard shortcut (like in PhatStudio or VisualAssist).

Related

How do I get the VsDropdownBarClass instance for the current window?

I'm using MEF to write a Visual Studio extension using Visual Studio 2012 Pro. I would like to access the Microsoft.VisualStudio.TextManager.Interop.VsDropdownBarClass instance for the current window's dropdown bar.
Is this possible with Visual Studio extensions? The few dropdown bar examples I've found all deal with creating dropdown bars as part of a new language service rather than accessing a window's existing dropdown bar.

How to enable syntax highlighting for *.handlebars files within Visual Studio 2012?

The broader question might be "Can you associate existing syntax highlighting (e.g. *.html) with arbitrary file extensions (e.g. *.handlebars) within Visual Studio 2012?"
I know there is an extension which allows highlighting of handlebars templates within *.html files, however I require the naming convention of *.handlebars for precompilation.
Under Visual Studio -> Tools -> Options you can set the type of editor for each extension:
I have the following features installed, not sure which one acctually installs the Javascript Editor:
The Visual Studio Web Developer Tools (out of the box feature)
The ASP.NET and Web Tools 2013.1
Visual Studio 2012 Extensions for the Windows Library for Javascript
WebEssentials
And of course Visual Studio 2012 Update 4
I totally agree with #jessehouwing but instead of choosing "Javascript Editor" simply choose "Html Editor". The problem is that if you're using a framework like EmberJS VS still won't recognize the syntax.
For instance:
<a href="#" class="deletelist" {{action "deleteTodoList" todoListId}}>X</a>
The action won't be recognized as valid syntax.

How to create a program interface (style) like the one used in Visual Studio, Office 2013, GitHub for Windows, etc?

I'd like to know how to create a program interface like the one used in Visual Studio, Office 2013, GitHub for Windows, etc.
Looks like Cosmopolitan Theme for WPF is not the same theme used on those softwares.
To show you the difference between these programs interfaces and common others take a look at those printscreens:
Interfaces I wanna know how to build:
Visual Studio:
Office 2013 (Excel):
GitHub for Windows:
Common Interface:
The difference between these programs is its interfaces. I already downloaded the Visual Studio Express for Windows 8, Visual Studio Express for Windows Desktop and I also looked at Visual Studio Ultimate, but them doesn't have the option the build such kind of interfaces when you create a "New Project...".
Do I need to install a new Template on my VS to be able to build such kind of interface? I think it's some sort of theme for WPF. I'd like to see proves that those applications use this UI style you refer in your answer.
Thanks.
Please note that the look and feel of the application is based on the operating system theme by default.
Your Interfaces have been designed following the Metro UI style. Metro UI apps are Windows 8 only, as they require WinRT.
You can only simulate the Metro style in Windows 7 (and vista) with WPF : you have to use a third party controls (or develop your own), such as these examples :
Modern UI for WPF
MahApps.Metro
Cosmopolitan is just a theme for common controls. For example, there are no pivot or panorama control.
Visual Studio 2012 and GitHub for Windows are WPF applications. Office uses custom controls for the "Metro" look.
WPF and Silverlight provide an easy way to theme an entire application. GitHub is based on the Silverlight theme "Cosmopolitan".
Here are some links for more information.
Cosmopolitan Theme for WPF
Making your WPF app look like the Zune client
Silverlight 4 Application Themes
Mishra Reader (An active open source WPF client with a similar theme)
Office 2013 uses Metro Style and Ribbons. For this you can use Fluent Control Suite. This project also has a Metro Style where you can easily make it like Office 2013. Note that you maybe need the recent dll instead of e.g. the nuget package.
If you want some icons like Office 2013, here i found an icon pack that is close to the Office icons: Axialis Pure Flat 2013 (with costs).
For others without Ribbons, you can use for example MahApps Metro as Cybermaxs suggested and for the docks you can use AvalonDock from the WPF Toolkit. AvalonDock also has a Metro Style. And a Visual Studio 2010 Style. And you can dock your Windows like in Visual Studio, very useful ;)

Has the Batch Build option been removed in Visual Studio 2012 Express?

I just recently switched from Visual C++ 2010 Express to Visual Studio 2012 Express for Desktop. Since I use it often, I soon found myself looking for the Batch Build... option under the Build menu (or Solution Explorer → <solution>'s right-click menu).
At work, I have Visual Studio 2012 Professional and the Batch Build... option is where it was in Visual Studio 2010.
Has this feature been cut from the Express editions?
It turns out the Batch Build... feature still exists in the Express edition of Visual Studio 2012; it's just been hidden for some reason.
To access it, you can either assign a keyboard shortcut via menu Tools → Options... → Environment → Keyboard and finding Build.BatchBuild, or you can add it to the Build menu and the Solution context menu, where it used to be, via Tools → Customize... → Commands. The Build menu is under the menu bars named Build and the Solution context menu is under the context menus named Project and Solution Context Menus | Solution.
You can also (Visual Studio 2013 Express) customize the menu to get the command (back):
How to: Customize Menus and Toolbars in Visual Studio
No, it hasn't been cut. I've been using it recently.
However, I have at least one solution where Batch Build is not present on the menu (and wasn't present in Visual Studio 2010, either). My guess is that there's something about the solution that Visual Studio doesn't like, and it disables the batch build feature - but I've never got to the bottom of it.
I would say that if you really need that feature, create a new solution and re-add the existing projects one by one.

Where is the run button in a default installation of Visual C++ 2010?

I have download Visual C++ 2010 and everything is fine but I have a small problem. It does not have the method start without debugging. Why? and how can i run project?
You are probably using the Express Edition of Visual C++ 2010. Some functions have been hidden by default in these editions. I believe the Microsoft's intention behind this is to not confuse novice users as much.
Either use the keyboard shortcut (Ctrl+F5) or switch Visual C++ 2010 Express into Expert Mode. The Expert Mode setting can be found in the menu "Tools" under "Settings":
Screenshot of the Expert Settings option in Visual Studio Express http://www.nuclex.org/images/stories/blog/gamedev/visualstudio/visual-studio-2010-expert-settings.png
Unless it's changed it should be to just press Ctrl-F5 to run it without the debugger.

Resources