How to create resource file for multilanguage in Visual Studio Express? - visual-studio

I want to generate Local Resources in Visual Studio Express 2012. Following are the steps given in a book to do it.
Open your webpage (markup) in Visual Studio.
From the Tools menu select Generate Local Resource. This causes Visual Studio to perform the following tasks:
Create the App_LocalResources folder (if necessary).
Generate an XML-based local resource file for the webpage in the App_LocalResources folder. This file contains resource settings for page elements (such as the title) and control properties (such as Text, ToolTip, Title, Caption, and other string-based properties).
However, when I try this with VS 2012 web express I can't see Generate local resource option under tools.
How to fix this issue? Can't we do this with VS Express?

Related

How to change icon of file based on file type in Visual Studio Extension

ITNOA
I have a GitHub project for Visual Studio Ansible extension, in this extension I want to change icon of ansible file in Visual Studio (.ansible and .ansible.yaml) based on file extension, but I do not know How to do it?
Anybody know to How to do it?
I write extension for Visual Studio 2022
related to https://github.com/MicrosoftDocs/visualstudio-docs/issues/8966#issue-1588941743
Updated 2/17/2023
I think it is related to https://learn.microsoft.com/en-us/visualstudio/extensibility/internals/manifest-from-resources?view=vs-2022
and based on How to add custom icons to solution explorer in Visual Studio I try to add resources and image manifest, but my file display void instead of display correct icon, and I do not know my mistake
I update source code, that you have see it https://github.com/soroshsabz/visualstudio-ansible/tree/features/5-add-syntax
related to https://developercommunity.visualstudio.com/t/New-icon-for-custom-file-type-is-not-d/10283644
thanks

VS2013 create new class from template

Hi is this possible to create some template for Visual studio, that when I create new class it will contains some description in header ?
On Visual Studio 2012 you could do something like this:
Find the files
C:\\Microsoft Visual Studio 11.0\Common7\IDE\ItemTemplates\CSharp\Code\1033
The file you want is in an appropriately named folder. If you open the Class folder you will find the following 2 files:
Class.cs
Class.vstemplate
Backup the original files
Change the Class.cs template file
Save your changes
Tell Visual Studio about the changes
Your new changes will not be loaded unless you explicitly tell Visual Studio to reload all templates.
Close Visual Studio (or the change swill not show until next time you run it)
Open a command prompt (you should run this as Administrator if you are not an admin of the machine).
Change to the IDE folder a few levels above the template folder (e.g. to C:\\Microsoft Visual Studio 10.0\Common7\IDE)
Run the following command:
devenv.exe /installvstemplates

CoffeeScript VisualStudio 2013

I was trying to use CoffeeScript on VisualStudio Express 2013 for WEB and when i create the file and build the solution wasnt it suppose to create the js files on the folder?
I tried to click on "Show All Files" to see if the file was there but wasnt.
Any ideas?
There are two extensions for Visual tudio:
http://vswebessentials.com/features/coffeescript
OR
Mindscape, a tool and component developer out of New Zealand, has a free extension for Visual Studio 2012 (as well as 2010 and 2013) called Web Workbench that enables editing of CoffeeScript files right inside Visual Studio (as well as Sass and Less files). Just create a new .coffee file, edit away and, when you click "Save," the accompanying JavaScript file is generated and saved as well. http://visualstudiomagazine.com/articles/2013/10/01/top-7-reasons-to-love-coffeescript.aspx

Create plainn HTML> with Visual Web Studio 2010 with NO ASPX within

Can I use Visual Web Studio Express from Microsoft and create web pages that will run on Apache servers?
I mean without the "code behind" stuff, just plain CMS website?
I'm still on VS2008 Pro, but I assume it's the same on VS2010 Express. Just open a plain html file (can be empty) or create a new one. You don't have to create a project or solution to edit it. You should be able to use preview pane, code pane, the css property tools, etc.

Visual Studio - I want "Go To Definition" to open Object Browser, not "metadata"

In Visual Studio version 2002 and 2003 "Go To Definition" would find the selected type or member in the Object Browser. In 2005 onwards it opens a source window "generated from metadata" instead. How do I configure these newer versions to go to Object Browser? (In other words, I have the opposite problem to this one.)
Installing ReSharper makes this change, so I know it must be possible, but how do I do it without ReSharper?
As workaround you can create the following macro:
Sub GoToDefinitionUsingObjectBrowser()
DTE.ExecuteCommand("Edit.SelectCurrentWord")
DTE.ExecuteCommand("View.ObjectBrowser")
DTE.ExecuteCommand("View.ObjectBrowserSearch", DTE.ActiveDocument.Selection.Text)
End Sub
Then go to Tools/Options/Keyboard and assign hot key for this macro.
Tested in Visual Studio 2010.
I believe what re-sharper is doing is doing some hooks on that click event with the Visual Studio SDK I do not think there is any simple menu or location that can change that setting.
Instructions (pulled from CODE Magazine) edited down a bit to the part that pertainst to making the right click menus.
Creating a VSPackage
...The VS SDK installs a few more project
templates in Visual Studio, one of
them being the Visual Studio
Integration Package (Figure 1),
located under Other Project Types >
Extensibility on the New Project
dialog box.
After this standard dialog box, the
Visual Studio Integration Package
Wizard guides you through creating the
new package project:
Select a programming language. The wizard currently supports Visual
C++ and Visual C#. You can create or
pick a key file to sign the new
package.
Supply basic VSPackage information. The wizard prompts you
for details such as the company name,
VSPackage name, version, icon,
detailed information, and minimum
Visual Studio edition (such as
Professional or Enterprise) that the
package is designed to at this step.
This information goes into the Visual
Studio splash screen and About dialog
box and is also used to request a PLK
for the package (covered later).
Select VSPackage options. A package may add three types of
functionality: Menu Command, Tool
Window, and Custom Editor.
A menu command is a command added either to the menu
at the top of Visual Studio or
to a context menu (right-click).
When the wizard finishes its job, the
VS SDK adds core elements to the
solution to support the new package.
For instance, if you selected Tool
Window as part of the functionality
for the package, the project contains
a user control where you should place
the visual controls for the window.
The project also contains files for
.NET code to handle the functionality
that you will add to the package.
A CtcComponents folder contains
pseudo-C++ files (ctc files) where you
define things like menu, groups,
buttons, etc. Fortunately, Microsoft
is phasing out CTC files and replacing
them with a friendlier, XML-based VSCT
file format (which will ship in the
SDK for Visual Studio 2008).
The wizard creates a few other files
with .NET code required for the
plumbing of the package within Visual
Studio. Some of these files contain
classes that map the C++ constants to
.NET constants and other files contain
configuration information for the
package when it’s installed.
I know it has been a long time, but it appears, at least in newer versions of Visual Studio for the VB (Basic) language, to be an setting in the options.
Text Editor > Basic > Advanced
Under "Go to Definition".
I don't know why they don't have that for other languages...
Place the mouse cursor on the object you want to access on the object browser. Then, use the keyboard shortcut ctrl + alt + j, which will take you directly to the Object Browser window.

Resources