I cannot seem to find a solution: I am using Visual Studio 2013 Ultimate.
Can I change this GUID looking Default namespace?
Here:
There are couple of ways you can do it.
There is a property called ScriptProjectName that is only available through the Expression Editor. Setting it can change the project name and the namespace in the script. You need to set the expression and save the package prior to editing the script.
You can follow this article for more details.
Related
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
I am using Visual Studio with Unity. When I copy and paste a code in Visual Studio. It automatically adds an unnecessary namespace on the top. It is pretty annoying to see if there have many unused namespaces over time. May I ask if is this a bug or how can I turn off the auto import namespace when copy paste?
From the suggested name, I think Visual Studio confuses the "length" and "Length"
Here are the steps to reproduce the problem
On the top of the page in Visual Studio, go to Tools > Options > Text Editor > C# > Advanced > Uncheck the option for "Add missing using directives on paste" then click OK on the bottom of the page. And then restart Visual Studio.
Might be useful to some to note that tab completion will still auto-add missing using directives.
Here is an example with the option checked (the example specifics are not relevant but in this case an attribute is being pasted to an ASP.Net Core Razor Page):
Here is an example with the option unchecked:
I'm trying to setup localization in my xamarin.form application following this tutorial : https://developer.xamarin.com/guides/xamarin-forms/advanced/localization/ .
But when I go to the menu 'add new item' in vs 2017 I can't find a option to create a resource file. Why is that? what is the solution?
By writing the word resx in the search box you will not be able to find the template for resource files. You must click on the General tab and locate in the resource files option.
If this does not work you should repair Visual Studio from the Visual Studio installer.
In my case i had to modified my installation and check .NET desktop development
That solved my problem
Apparently this was resolved in VS2017
https://developercommunity.visualstudio.com/content/problem/85616/add-new-item-resource-file-resx-missing.html
but I had to use the same fix to get it working in VS2019
Is there a way to have Visual Studio 2008 automatically add heading information to files? For example, "Copyright 2008" or something along those lines. I've been digging through the options, but nothing seems to be jumping out at me.
I assume you'd like to modify the class file templates. They're in:
%ProgramFiles%\Microsoft Visual Studio 9.0\Common7\IDE\ItemTemplates\CSharp\Code\1033
More specific details here
I found a better solution than modifying the template file directly. This utility allows you to create and save header/footer templates and apply them to entire source trees.
C# Header Designer from MSDN Code Gallery
When I press Ctrl+. over any symbol in the editor, it has stopped showing me the option of inserting a using statement to include the namespace on the top of my file.
It just shows me the option to use the namespace qualified type name as depicted in the snapshot.
I am using Visual Studio Community 2015 RC. I have restarted it several times but that didn't help.