Monday, October 28, 2013

Tip 7.12: How to hide or show a solution in the Solution Explorer

"Visual Studio Tips, 251 ways to improve your Productivity in Visual Studio", courtesy of 'Sara Ford'

Sara Ford's Blog



Sometimes, you might find yourself in a state where the solution is not shown. For example, some of the default environment settings, like the Visual Basic Development Settings, have this behavior enabled.

VSTip7120

If you find yourself in this state and want the solution back, go to Tools–Options–Projects And Solutions–General and check the Always Show Solution check box.

VSTip7120a

Having said all this, she'll warn you that Visual Studio overrides this setting and always shows the solution if the solution has two or more projects in it.

Happy Programming! =)
Posted by Nils-Holger at 2:11 PM with 0 comments.

Sunday, October 27, 2013

Tip 7.11: You can automatically perform a rename within an entire project when you rename a file in the Solution Explorer

"Visual Studio Tips, 251 ways to improve your Productivity in Visual Studio", courtesy of 'Sara Ford'

Sara Ford's Blog



Let's say you create a new class file called Class1. If you try to rename Class1 in the Solution Explorer, Visual Studio prompts you to decide whether you want to rename all references to this code element in your project.

VSTip7110

But she's more of an IDE tips know-it-all, so the real "Did you know" here is this: Did you know you can disable this prompt and just have Visual Studio automatically do the rename for you? Go to Tools–Options–Projects And Solutions–General and uncheck the Prompt For Symbolic Renaming When Renaming Files option.

VSTip7110a

Happy Programming! =)
Posted by Nils-Holger at 12:09 PM with 432 comments.

Saturday, October 26, 2013

Tip 7.10: You can add a solution to a solution

"Visual Studio Tips, 251 ways to improve your Productivity in Visual Studio", courtesy of 'Sara Ford'

Sara Ford's Blog



Today's tip falls into the "You can do what!?" category.
  1. Open your primary solution (the solution you want to add another solution to).
  2. Go to File–Add–Add Existing Project.
  3. Change Files Of Type to Solution Files.
  4. Select the solution file you want to add.


VSTip7100

These steps add the contents of ClassLibrary1.sln to the ConsoleApplication5 solution, as shown here.

VSTip7100a

Happy Programming! =)
Posted by Nils-Holger at 11:12 AM with 758 comments.