After two evenings of designing a new WinForms application GUI I have suddenly realized that I am doing it in a VB project I had created instead of a C# project unintentionally.
And this is not the first time such a thing happens to me.
Can I just remove the VB options from the list so prevent them being chosen accidentally?
Just go to
Tools
Import and Export Settings...
Import Selected Environment settings and click Next
Make selection whether to save current settings and click Next
Select C# under the Default Settings folder and click Next
Deselect everything except for the General Settings > New Project Dialog Preferred Language entry and click Finish.
Best Regards
Related
I recently published an office solution as a click once application on my one drive. My client downloaded it from there and when he tried to install, it gave him this error.
I want to republish it by making it a full trust application but i cannot find the security tab in project properties.
Thanks in advance.
I had the same issue and the solution was super annoying to figure out. Someone on another website mentioned that the Security tab is only relevant for certain types of ClickOnce applications so I started playing around with various options and figured it out.
In the Application tab, for Application Type, select Windows Forms Application from the drop-down menu (other drop-down options might also work but haven't tried them)
Save everything: In the main menu bar of Visual Studio, click File > Save All.
Close your project Properties window (i.e. the one with the Application tab that we were just modifying)
Open your project Properties window again: in your Solution Explorer, select your project, go to the main menu bar, click Project, click Properties.
Voila! It should be there. :)
I was wondering how is it possible to assign keyboard shortcut that will reset my opened VS window to my saved settings (full setting import)?
I am not talking about Tools > Import and Export Setting (I want to have a single Reset shortcut) also I am not talking just about ResetWindowLayout option (this one only resets windows layout, not all settings).
Manually all settings can be restored from saved file by going to
Tools > Import and Export Setting
Import Selected Environment Settings > select "Just Import new settings, overwriting my current settings" radio button
Choose a collection of Setting to Import > select a saved file
Choose Setting to import > Check "All Setting" checkbox
Click Finish
Too many steps, I just want to import my setting with one click, similar to ResetWindowLayout to which I can assign a keyboard shortcut.
Any ideas ?
New Answer
Install the macro extension from Microsoft.
https://visualstudiogallery.msdn.microsoft.com/d3fbf133-e51b-41a2-b86f-9560a96ff62b/view/Reviews
Create two macro files. Adjust your paths. (I think you need to keep the commented reference path.
SaveSettings:
dte.ExecuteCommand("Tools.ImportandExportSettings", "-export:C:\\Docs\\VS2013\\Settings\\BACKUP.vssettings");
LoadSettings:
dte.ExecuteCommand('Tools.ImportandExportSettings', '-import:C:\\Docs\\VS2013\\Settings\\BACKUP.vssettings');
Old Answer - Still can work for you. I unsure the project is not supported anymore.
Your are in luck. We both had this same question today and I was considering making something myself before stumbling on this.
VS Settings Switcher
This supports saving and loading settings as profile names.
Even better, you can set a solution to default to a particular settings profile. Useful if your project is a web project to appear as a certain layout. Or a class library project with unit testing layouts. Or even for switching between multi and single monitor.
One of the tests I performed with this tool was to not only close and move around my tool windows, but I deleted icons from my toolbars. I then restored all my changes by applying the saved profile.
After you install VS2010 and start it for the first time, your asked how you want your VS environment set, such as: C#, Web Developer, VB, etc...
How do you change this settings later?
To reset your settings
On the Tools menu, click Import and Export Settings.
On the Welcome to the Import and Export Settings Wizard page, click Reset all settings and then click Next.
You can then choose to save your old settings or not, then click Next.
In Which collection of settings do you want to reset to, select a settings collection from the list. This is where you choose for example C#.
Press Finish and you're done.
Go to Tools menu >> Import and Export Settings >> Reset all settings. Follow the instructions of the wizard and choose the desired language as default development environment.
For some reason I've lost the dropdownbox above the text editor. The one that lists all methods, variables and properties in a class. And it makes me go crazy when I browse larger classes.
Maybe it is easier to enable "Navigation bar" option under "Tools->Options->Text Editor->[The language that you using]->General]
Have you tried resetting the interface?
from the command line run devenv.exe /resetsettings
2.. From Visual Studio
On the Tools menu, click Import and Export Settings.
On the Welcome to the Import and Export Settings Wizard page, click Reset all settings and then click Next.
If you want to save your current settings combination, click Yes, save my current settings, specify a file name, and then click Next.
—or—
If you want to delete your current settings combination, choose No, just reset settings, overwriting my current settings, and then click Next. This option does not delete default settings, which will still be available the next time you use the wizard.
In Which collection of settings do you want to reset to, select a settings collection from the list.
Click Finish.
The Reset Complete page alerts you to any problems encountered during the reset.
Is there a way of adding other options (specifically Add Interface) to the projects right click context menu (Right Click a project > Add > [Class, new Item, new form,...])?
I found one option in the customize dialog to place an 'Add Interface...' item in, but this is always disabled. I found that one under the Projects category of menu customization, so i assumed it would work...
Any ideas?
I'm currently trialing ReSharper, and that has it's own set of Create New context menu entries (which are key bindable), and these support everything I am after.
The ReSharper "Create New" dialogue is a lot faster to respond than the in built Visual Studio one too.