Is it possible to change icons in Visual Studio 2012?

后端 未结 4 1318
你的背包
你的背包 2021-01-29 23:00

Is there any way to replace VS2012 solution explorer\'s icons with VS2010 ones? At least \'folder\' icon :(

相关标签:
4条回答
  • 2021-01-29 23:14

    Look at this thread: Solution Explorer - custom icons for my folders

    I think it's also applicable for vs2012

    If not -> you can manually find solution explorer's icon resources with ResHack (or Resource Hacker) and simply replace it!

    0 讨论(0)
  • 2021-01-29 23:15

    Here is the solution:

    Visual Studio Icon Patcher http://vsip.codeplex.com/

    Description from VSIP web page:

    Project Description Visual Studio Icon Patcher allows you to update Visual Studio 2012 with the icons from Visual Studio 2010.

    Until someone can find a way to change the icons via a plug-in the only way to change them is through resource patching the DLLs that Visual Studio uses. There are a number of managed and unmanaged DLLs containing Bitmaps and PNGs that are used to style the application. For now only the unmanaged DLLs are part of this process with the managed DLLs hopefully coming soon.

    No images are distributed with this project. You will need to have both Visual Studio 2010 and 2012 installed to use this.

    Update
    I've just tested VSIP with Visual Studio 2012 Update 2, and it work flawlessly :-)

    0 讨论(0)
  • 2021-01-29 23:18

    Here is a shot of my VS2012 install that almost looks like the familiar 2010 we are all used to. It makes me feel normal again!

    enter image description here

    Here is exactly how I did this, step-by-step:

    1) Close all instances of Visual Studio

    2) Download vsip and extract it to a temp directory. (as of 1/3/2013 the current version is 1.5.2)

    3) Open up a command prompt with "Run as administrator"

    4) Go to the temp directory and run VSIP.exe - This will run an interactive program that accepts commands.
      4a) Type "backup --version=2012" - This will backup all of your VS2012 UI dlls, just in case something gets messed up and you want to uninstall VSIP.
      4b) Type "extract" - This will extract all of the old icons from your installation of VS2010 (per VS2010 license VSIP can not distribute those icons so we have to have a local install to pull them from).
      4c) Type "inject" - This will inject all of the old 2010 icons from the previous step into the VS2012 DLLs.
      4d) Type "menus -n" - This will change the menus so they are NOT ALL CAPITALIZED!

    5) Download and install NiceVS - do not download the one dated 10/14 or you will be missing icons. As of 1/3/2013 I downloaded the file named "NiceVS.0.8.1.1 Beta.Full.vsix".

    6) Download and install VS2012 Color Theme Editor - The next time you start VS2012 select the "Blue" theme from the color select window.

    Now you should have a nice install of VS2012 that looks like my screen shot above! It takes three different applications to patch that hideous UI but it's certainly workable now! If you don't have VS2010 installed on the same machine as VS2012 then you will have to run step 4b on a machine with VS2010 and then copy the VSIP Images directory to your 2012 development machine.

    Update: If you install "VS 2012 Update 1" after running these steps you will need to re-run step 4c from the VSIP admin prompt (or all of step 4 if you didn't keep the extract of the VS2010 images). The file menu icons and color scheme stay as they are but the update reverts the icons in the solution explorer back to the ugly ones. Re-running the VSIP inject fixes it right up!

    0 讨论(0)
  • 2021-01-29 23:26

    Short Answer: Hack the old icons into 2012.

    Visual Studio Icon Patcher - http://vsip.codeplex.com

    Long Answer: Doing this with a plugin, for now, is out of the question. I've been unable to find any built-in way to achieve this and the switch to WPF makes it even harder to hack around.

    This app simply extracts the image resources from the unmanaged DLLs in Visual Studio 2010 and injects them into the DLLs for Visual Studio 2012. The managed resources are a lot more complex and haven't been added in yet, though I have gotten some to work.

    The initial release didn't work well with themes that had a dark Tree View background color due to how the icon colors are inverted when a dark background color is detected. This is made even worse in the newest release since menu & toolbar icons are included now. I'm running this with the Blue Theme and it looks fine.

    One way to hack around the icon inversion is to edit all the extracted images to add a single cyan pixel in the top right corner of each icon in the image map. This will exclude them from the inversion process. I haven't tried this though because I ran into issues early on when manipulating the images where they wouldn't display right. You could try it but it'll be fairly manual and time consuming and may not even work.

    0 讨论(0)
提交回复
热议问题