8891

How to reset visual studio settings to my saved settings with just a single shortcut?

Question:

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

<ol><li>Tools > Import and Export Setting </li> <li>Import Selected Environment Settings > select "Just Import new settings, overwriting my current settings" radio button </li> <li>Choose a collection of Setting to Import > select a saved file </li> <li>Choose Setting to import > Check "All Setting" checkbox </li> <li>Click Finish</li> </ol>

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 ?

Answer1:

<h2>New Answer</h2>

Install the macro extension from Microsoft. <a href="https://visualstudiogallery.msdn.microsoft.com/d3fbf133-e51b-41a2-b86f-9560a96ff62b/view/Reviews" rel="nofollow">https://visualstudiogallery.msdn.microsoft.com/d3fbf133-e51b-41a2-b86f-9560a96ff62b/view/Reviews</a>

Create two macro files. Adjust your paths. (I think you need to keep the commented reference path.<br /><strong>SaveSettings:</strong>

dte.ExecuteCommand("Tools.ImportandExportSettings", "-export:C:\\Docs\\VS2013\\Settings\\BACKUP.vssettings");

<strong>LoadSettings:</strong>

dte.ExecuteCommand('Tools.ImportandExportSettings', '-import:C:\\Docs\\VS2013\\Settings\\BACKUP.vssettings'); <h2>Old Answer - Still can work for you. I unsure the project is not supported anymore.</h2>

Your are in luck. We both had this same question today and I was considering making something myself before stumbling on this.

<a href="https://visualstudiogallery.msdn.microsoft.com/fa71b090-7a6d-49a3-98aa-54d5e3feaa6b" rel="nofollow">VS Settings Switcher</a>

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.

Recommend

  • scrapy : another method to avoid a lot of try except
  • Angular not working correctly with Meteor 1.3.1
  • Making the horizontal axis labels clickable
  • Using multiple CSS selectors for the same ArticleItem in Scrapy
  • How do you move the cursor to the next element in a contenteditable div in Chrome/Safari?
  • why warning with my performSelector
  • How to determine which eclipse dependencies to use
  • performSelector in NSOperation subclass
  • JavaScript get page coordinates of closest clicked character
  • select only 1st level of nested elements
  • How do I interpolate a line number from __LINE__ into the name of a test in Perl?
  • Get highlight text in current window and send it in a popup
  • Where these are stored?
  • Add reference to ASP.NET 5 Class Library from Framework 4.5 Class Library Project
  • abstracting over a collection
  • How can I tell a form not to dispose a particular control when it closes?
  • SyntaxError: (irb):26: both block arg and actual block given
  • Saving image to sd with current date and time in name doesn't work
  • How do I display a dialog that asks the user multi-choice questıon using tkInter?
  • Angularjs pass function from Controller to Directive (or call controller function from directive) -
  • How to get Eclipse Oxygen to run on Java 9
  • MailKit: The IMAP server replied to the 'EXAMINE' command with a 'BAD' response
  • Yii2: Config params vs. const/define
  • How to avoid particles glitching together in an elastic particle collision simulator?
  • Android fill_parent issue
  • Scrapy recursive link crawler
  • How to rebase a series of branches?
  • Recording logins for password protected directories
  • Lost migrations and Azure database is now out of sync
  • Splitting given String into two variables - php
  • Why ng-show works with ng-repeat but ng-if doesn't? [duplicate]
  • Check if a string to interpolate provides expected placeholders
  • jquery mobile loadPage not working
  • Properly structure and highlight a GtkPopoverMenu using PyGObject
  • XCode can't find symbols for a specific iOS library/framework project
  • 0x202A in filename: Why?
  • Data Validation Drop Down Box Arrow Disappearing
  • retrieve vertices with no linked edge in arangodb
  • How can I get HTML syntax highlighting in my editor for CakePHP?
  • How do you join a server to an Active Directory (domain)?