Using CamelHumps without resharper or coderush - visual-studio-2013

I've read through the previous threads on ctrl+arrow or ctrl+shift+arrow in visual studio using resharper or coderush.
There was one answer where a macro achieved the same result.
However, VS2013 no longer supports macros.
Is there an alternative way to support camelhumps in Visual Studio 2013 without relying on resharper or coderush?

I stumbled across this question before stumbling over the VSTricks extension, which does this (and a couple of other things).
After installing, I had to re-map the hotkeys manually, but it was pretty simple:
For all the settings in the list, I mapped to the keystrokes that were previously mapped to the corresponding commands for words (e.g. Edit.SubWordNext was mapped to Ctrl+Right arrow, which was previously mapped to Edit.WordNext).
The extension works in VS2015 too - and, unlike e.g. ReSharper which also has this feature, it's free :)

Related

Do I need ReSharper for Visual Studio 2015/2017

I saw a lot of good comments about ReSharper. So I gave it a try and I really like it. I even suggested to my team to use it and to put some money in this tool. But they sad "We better put the money in updating Visual Studio because newer versions come with almost all ReSharper features" as we are using Visual Studio 2010.
Is ReSharper useless in Visual Studio 2015 or 2017?
This might not be an answer, just my own opinion.
VS2017 is doing very well without R#. however, some important functions are still not there in VS2017, e.g. renaming namespaces, and here R# role arises.
Some where else, I find R# make the things bad, for example, I don't like how the R# renames the properties, it gives and new popup window, where VS2017 renames it immediately.
So what I mean, sometimes R# might be useful, but if you are not using it, you are absolutely safe and productive.
I am still waiting for any video or article where it is described, what are the flagship killers functions in R# which VS2017 doesn't have (except renaming namespaces ;)).
UPDATE:
What I actually suggest is, install use the refactoring suggestions of R# because they are awesome, but keep the default key mapping of VS2017.**
UPEATE 2:
I have been working for 1 year without resharper, and I am very ok and do not miss any function, except renaming namespaces.
UPDATE 3:
I miss the function of extracting a method to an existing interface in Visual Studio 2017, which already exists in ReSharper.
ReSharper is not useless in newer versions of Visual Studio, but there are a lot of features and shortcuts that come baked right into VS. My opinion would be that if you are new to developing in VS, look into the features it already has and make the best use of them. After all, what good is a Porsche if you cant drive? Here are a couple of links you should check out.
https://msdn.microsoft.com/en-us/library/da5kh0wa.aspx
https://msdn.microsoft.com/en-us/library/ms366750(v=vs.90).aspx

Resharper Overriding VS Functionality

I downloaded the trial of Resharper and installed it today. The first thing it asked me was that version of shortcut keys I wanted to use. It asked me if I wanted to override some standard Visual Studio shortcut keys. My answer was ##$# no!
However, the first thing I did was a Ctrl-Dot on a class reference that was missing an import. Immediately, the Resharper context menu came up which is similar to the VS one, but is missing the item for automatically adding the import.
How do I keep Resharper from usurping VS functionality?
Edit: Ouch! After using this thing for a couple of hours, I've realized that it has totally overridden loads of VS functionality. This thing is awful. I just want to use the toolset, I don't want a completely new IDE. If I wanted a different IDE, I'd go out and buy one. How do I turn off all Visual Studio integration except for the menu that lets me run the tools?
There are a lot of different settings you can turn on and off to allow Visual Studio to behave more like Visual Studio when Resharper is in action. What's I've learned to do is just turn it on when I want to use it, and turn it off when I want to use Visual Studio.
Tools -> Options -> Resharper Ultimate General -> Suspend / Resume Now

Possible to deactivate parts of Visual Studio 2010 Ultimate without reinstall?

I have Visual Studio 2010 Ultimate installed. It includes a lot of features that I rarely use, mostly around Team Explorer and Architecture and Modeling Tools. These things have a ton of commands and menus and context menu items that really clutter my display and probably slow down VS launching etc.
Is it possible to deactivate these components without uninstalling Ultimate and installing Pro instead? I do use these components on rare occasions and don't want them completely gone, just temporarily disabled.
I looked at the installer's "change" options, and it only has high level options like "C#" and "Visual Basic", nothing about the modeling tools. These components also do not show up in the addins or extensions lists.
(I'm fine with a hacky solution, like renaming a folder or editing an XML file.)
Adam Driscoll to the rescue.
http://csharpening.net/?p=640
He wrote a tool called VSTweaker that does exactly this.

Where does VS2010 store modified keyboard shortcuts?

I have this strange behaviour in VS2010 where any modifications I make to keyboard shortcuts or the text for top-level menu items (File, Edit, View, ...) are reset to their default values the next time I restart VS. I suspect that one or more of the add-ins I've installed could be the culprit. So far though, I have had no success in stopping this very annoying behaviour, so I'm desperate for any tips.
VS 2010 Professional RTM
Add-Ins that might be responsible:
Red Gate .Net Reflector
DevExpress Refactor! 10.1 (with DXCore, CodeRush Express)
VisualSVN 2.0
Any ideas?
From MSDN:
Several pre-defined keyboard shortcut collections are included in Visual Studio. You can change the keyboard shortcuts for most commands, and your changes are automatically saved in your active settings file.
I'm not sure where that is in 2010, but in 2008 it was something like <path to your profile>\My Documents\Visual Studio 2008\Settings\CurrentSettings.vssettings.
While Cory's answer was strictly correct as to my question title (which is why I've marked it as the accepted answer), it didn't help me find the cause of the problem I described.
In the meantime, though, I've installed VS on a fresh system and then added the extras one by one - and discovered that it was Red Gate .Net Reflector add-in which was causing the erratic behaviour. Since I only rarely used the add-in and Reflector can easily be run stand-alone, I solved my problem by removing the add-in.

Matching a closing brace in Visual Studio

Is there a setting in Visual Studio 2008 that I can turn on which would generate a matching closing brace for a opening brace?
EDIT: I would imagine that an IDE as powerful as Visual Studio would have this very useful feature.
EDIT: Is there a macro that can be written? From the responses I have received it looks like ReSharper is the only option. I don't want to have to ask my company to invest in the ReSharper tool, I work for a rather large enterprise and getting anything approved from procurement is not an easy task.
EDIT: I am using VS 2010 Ultimate. The Power Tools and Power commands now do everything I was looking for in this post.
I know the original question is about VS2008, but I'm putting this here as info for other people and to make it useful for recent versions
VS 2010 and VS 2012
The Productivity Power Tools (available for VS2010 and VS2012) extension now supports automatic brace completion.
If you already have it installed for VS2010, you must update to at least version 10.0.10710.22. Click
Tools -> Extension Manager -> Updates
Once you have it installed, you can turn brace completion on or off by going to
Tools -> Options -> Productivity Power Tools -> All Extensions -> Automatic Brace Completion
The most recent version now provides the ability to turn of any features you don't like so you can configure it to your requirements
VS 2013
Even though there's a matching addin for Visual Studio 2013 as well, VS now has native support for automatic brace completion without using any addins. Just go to:
Tools -> Options -> Text Editor -> C#
Tick checkbox against Automatic brace completion
I use ReSharper. It does a whole lot more besides just the closing brace. The only downside is it's not free. But give it a try. The code analysis is worth the price anyway.
Most of the time, you can use autocompletion and code snippets.
If you want to write a for loop, just type "for" and then TAB. VS will complete it (including the braces).
Same thing for if, struct, class, switch... You don't even have to type the first brace !!
Good paper about it here : https://web.archive.org/web/1/http://blogs.techrepublic%2ecom%2ecom/programming-and-development/?p=655
EDIT: Thanks hyde, Steven's answer appears to be right: The Microsoft Productivity Power Tools do have a 2012 version now.
Original outdated answer:
It appears that the Microsoft Productivity Power Tools don't work in VS 2012 yet. If you're looking for a solution that works on the new version, you can check out this extension:
http://visualstudiogallery.msdn.microsoft.com/0e33cb22-d4ac-4f5a-902f-aff5177cc94d
In VS 2013 there is the option of "Automatic delimiter highlighting" (under tools, options, text editor) and while checking that box should highlight matching braces, it doesn't under default settings. This is because the default background is white, and the default highlight color is also white. This can be changed by going to environment, fonts and colors, and changing the background color of "brace matching (rectangle)". Then matching braces will be highlighted and visible.
I realized after I answered that the question was creating the brace not being able to find existing braces. As that's the question I was trying to answer when I ended up here I'm leaving the answer in case it's helpful.
Depends on what you are looking for VS does have some standard auto completion if[tab][tab] and for[tab][tab] try[tab][tab](and lots of other constructs) will get you more than the matching braces in a really nice fashion.
Late to the party here, but I guess you got use an independently running AutoHotKey script to insert closing brackets/quotes for you.
If you don't want to pay for ReSharper or a similar package, I made a free extension to automatically close braces. You can find it in the Visual Studio Gallery at http://visualstudiogallery.msdn.microsoft.com/en-us/0e33cb22-d4ac-4f5a-902f-aff5177cc94d. It will only work in Visual Studio 2010 though.

Resources