No Language in User File Template in ReSharper - visual-studio-2010

I am using ReSharper 5.1.
I have created a User File Template called Singleton.
But it shows my template as folded into No Language section in ReSharper template collection:
http://img839.imageshack.us/img839/6585/resharpernolang.png
How do I set it to be in C# section?

Edit your Singleton template. In the editor you will see a line that says "Available in" and a hyperlink. The default is "Everywhere" I think. If you click that blue link, you will get a "Template Option" dialog. You can choose "Only in Projects for Language:" and choose one of the C# options. That will list it in the C# language under your user templates.

Related

Powerpoint 2016 - Default Template on the Backstage

In PPT 2013, there was an option to save a template file blank.potx in %APPDATA%\Microsoft\Templates so it would appear on the Backstage as a "Default Theme". That also allowed to use CTRL + N to create a new presentation using the template. More detailed info.
Starting from the PPT 2016, a new location for the templates was defined %USERPROFILE%\Documents\Custom Office Templates.
I guess, that lead to some inconveniences, which resulted in making this support entry, explaining the new location.
The problem is, I want to be able to use CTRL + N and also see blank.potx named as "Default Template" or so. The way I found so far is to "trick" by placing blank.potx in %APPDATA%\Microsoft\Templates and copy-paste the renamed version of the same file in %USERPROFILE%\Documents\Custom Office Templates. Unfortunately, it does not appear as the first choice, and may mislead due to name inconsistency. Is there a better way to deal with this?
Note that only after you save your first template (format potx), two new links will appear under the "search for templates" widget:
FEATURED and PERSONAL template links as shown in the "New" dialogue box
The PERSONAL link will show all template files in the default templates directory: %USERPROFILE%\Documents\Custom Office Templates
If you add a folder there (or a shortcut to your personal templates folder), all templates will be easily accessible

Eclipse Plugin - How to contribute to a menu on the editor?

Currently my plugin.xml has
<extension
point="org.eclipse.ui.popupMenus">
Which contributes to the menu showed when right clicking some file in the project explorer.
In addition, I want to contribute to the menu showed when right clicking anywhere in the editor view (the view with the code itself).
I can't find what's the corresponding extension point for this menu, and how do I contribute to two different menus.
Thanks
The org.eclipse.ui.popupMenus extension point is deprecated and should not be used for new code.
The org.eclipse.ui.menus extension point supports all types of menu.
You define a popup style menu using something like:
<extension
point="org.eclipse.ui.menus">
<menuContribution
allPopups="false"
locationURI="popup:org.eclipse.pde.ui.tools">
... various menu contributions
The locationURI is saying this contribution to the popup menu with id org.eclipse.pde.ui.tools
You must define the id of your editor's context menu in your editor code. How you do this defines on the type of editor your are creating. For an editor based on TextEditor call
setEditorContextMenuId("menu id");
in your editor's constructor.

Edit xaml style

I'm trying to edit an XAML style as suggested in this comment, following MSDN - but the MSDN tutorial says "To create a style, select the object, and then in the Object menu, choose Edit Style" and I can't find an object menu. The objects and timeline tab does not include an option for "edit style", and there is no "object" menu at the top of the screen.
This must be simple if you know this stuff. But I can't find it.
That MSDN article is a bit outdated. To edit a style (assuming you are using Visual Studio 2013/2015 or Blend for Visual Studio 2013/2015), select the object in the XAML designer, then use Format menu -> Edit style...

How to make an item template, which would be available on all project types

I am making a Visual Studio extension, which allows to embed web pages into your projects and solutions: https://visualstudiogallery.msdn.microsoft.com/52bd30dd-596f-40a9-94a9-ba3fb250c671
Alpha is out. However, I have a problem: item template for a web page link indeed appears in File -> 'New -> File ...' dialog, but not when I do right click on C# project, and select 'New Item ...' there. I understand, that I can add identical template to ItemTemplates folder, specific to C# projects, but I want my template be easily available in all project types via 'New Item ...'.
Is there a way to do it?
If you use the item templates to display all the projects you need to create the Custom item templates like Custom project system.

Translating Joomla User Menu

Hi I'm looking to translate the Frontend User Menu for Joomla containing the menu:
User Menu
Your Profile
Submit an Article
Submit a Weblink
Site Administrator
Template Settings
Site Settings
It's primary the Title and the first 3 options that I need to translate.
I've been searching my file directory almost whole day now to find the associated files, but without any luck.
I'm using the Danish language pack, and even if I set it as the default language for both frontend and backend, the frontend User Menu it still shows in English. Which makes me guess it's not located in any of the language folders...
WHat you are trying to translate is the actual titles of the menu items, plus the title of the module that renders this menu.
For these:
Your Profile
Submit an Article
Submit a Weblink
Site Administrator
Template Settings Site Settings
You need to go in the menu manager, I guess this menu should be called "User Menu" and edit the menu-items titles to your desired titles.
For the "User Menu", you need to go to Module Manager and find the Menu Module that renders this menu, should be called "User Menu" and change its title as per your needs.
Joomla has an automatic search for language strings and override creation at:
Extensions -> Language Manager -> Overrides -> New
If search doesn't get results please try word by word because sometimes components use combination of strings.
If you still can't find the strings then there may be a menu at Menus -> Menu Manager that you could translate or these strings have been set in the code without string variables (you have to check your component / module).
Good Luck!

Resources