Visual Studio not closing curled bracket - visual-studio-2010

For some reason, on a new computer, Visual Studio won't auto-close curled brackets.
if(Username.Text.Equals()) {
And it doesn't auto-close. Works perfectly on all other machines I've installed VS2010 on. And now it just won't.
And there doesn't seem to be a setting in the options menu to alter this behavior. What do I need to do?

I'm not sure if this is actually built in to vs2010. But you can install the MS Productivity Power Tools (Productivity Power Tools for Visual Studio 2012) Which will give you brace auto completion. this is quite a common add in so maybe the other copies of VS you have tried have it installed??

Visual Studio will auto-format matching pairs of brackets as you type, but I have never seen this on Visual Studio 'out of the box'.
According to this Microsoft Connect entry, it's officially not on VS2010, having been cut due to time priority issues vs time constraints.
However, add ons like the free Microsoft Productivity Power Tools, or the not-so-free JetBrains ReSharper will add this functionality for you. Perhaps you had one of these (or other similar) add-ons installed in the other computers you have previously worked on.

Related

Unity breaks Visual Studio options

I have installed Visual Studio 2015 Community Edition via Unity's installer and some of the options windows look like this:
Nothing fixes it; uninstalling-installing, formatting or installing on different machines. Apparently no one complains about this issue because there seems to be nothing on search results, but I'm 100% sure that everyone is experiencing this issue. When you open Visual Studio on its own, problem goes away, it works like it should. However, making Unity open Visual Studio causes it. I assume that this is caused by Unity forcing Visual Studio to load a plugin (probably Visual Studio Tools for Unity) which is actually incompatible with almost everything in Visual Studio.
Is there a solution to this problem? It drives me crazy and I don't want to use MonoDevelop.

Auto expand regions in Visual Studio 2013?

<= Visual Studio 2012, you could use the I Hate #Regions plugin to auto expand regions, but this isn't available for 2013.
Is there an alternative, or is this option available natively now?
Thanks
There is now Visual Studio 2013 support according to the site
I Hate #Regions
And OP has confirmed that it is working in VS2013 now. So we never have to be bothered by pesky regions again.
Slightly offtopic, but for the record:
There are key combos for expanding and collapsing regions. The mentioned plugin just expands everything when a file is opened.

What happened to Edit.MoveLineUp/Down in Visual Studio 2012

In Visual Studio 2010 you can assign keyboard shortcuts for moving lines up and down.
I can't find these commands in 2012.
Have they been renamed or removed? Is there any way, out-of-the-box, to move lines using ALT + ↑↓? (I'm not buying ReSharper.)
This command is a part of Productivity Power Tools.
The 2012 version was released in November 2012. You can find it here:
Productivity Power Tools for Visual Studio 2012
Nothing happened to it, these commands don't exist in VS2010 either. Check what add-ins you've got installed.
Not sure what it does, but consider Edit.ScrollLineUp/Down. Default binding is Ctrl+Up/Down arrow.

How to drop a Brief bookmark in Visual Studio?

i've created binding for Visual Studio's Edit.BriefBookmarkDropx commands:
Edit.BriefBookmarkDrop1: Ctrl+Shift+1
Edit.BriefBookmarkDrop2: Ctrl+Shift+2
Edit.BriefBookmarkDrop3: Ctrl+Shift+3
...
Edit.BriefBookmarkDrop9: Ctrl+Shift+9
Using Tools -> Options -> Keyboard:
Except that when i hit Ctrl+Shift+2, nothing happens:
i know Microsoft likes to obfuscate Visual Studio features. What's the secret trick that i'm missing?
Note: i am installed DPack into Visual Studio Professional - an addon that provides brief bookmarks (and a number of other essential features). Do not confuse this for an answer to my question:
you cannot install addons into Visual Studio Express
you cannot install addons into the Visual Studio Shell
my question isn't about addons
Bonus Reading
MSDN: How to: Use Bookmarks with Brief Emulation (Visual Studio 2008)
Numbered Bookmarks addon for Visual Studio 2005
DPak Numbered Bookmarks
It took four years, but i figured it out. Everything i was doing was correct. The only issue is that Visual Studio is stupid. Here's how to configure Visual Studio to drop a Brief bookmark:
How's that different from what i showed in the question?
Fails Use new shortcut in: Global
Works Use new shortcut in: Text Editor
By default any keys you bind in the Global space do nothing.
Which begs the question why the option is there, and the default? But usability is not something Visual Studio team prides itself on.

Is there any tab manager for visual studio?

It's common for me to have 20+ files opened in Visual Studio (I use VS 2008 now, but we will migrate to VS 2010, soon.). Is there any add-in which could help organize actively opened files?
I mean something like Firefox colorful tabs or a tab-manager which will group windows tabs by projects or folders,...
Visual Studio Power tools will do it for 2010, out of luck for 2008 (as far as I know).
There are versions of Power tools for all the newer Visual Studios.
Newest: VS Power tools 2015
You can have them color coded by assembly, most recently used up front, and several other sorting/grouping options
Tabs Studio document tabs manager add-in (developed by me) supports VS 2010+ and VS 2008.
I like the alternative approach proposed by the 'Tidy Tabs' extension.
Rather than providing you with a mechanism to manage billions of tabs, it helps by automatically monitoring and cleaning up your tabs to only display the ones that you have most recently been using.
It's free too. :)
From the extension page:
Tidy Tabs keeps your document well organized by closing tabs that are no longer being used. Tabs that have not been viewed in a configurable amount of time can be closed with a keyboard shortcut (CTRL+ALT+ESC) or closed automatically whenever you save a document.
http://visualstudiogallery.msdn.microsoft.com/b80ab284-83f8-4022-bc78-95af126ba5f0

Resources