2

When I'm working in xCode I can use the Command-LeftArrow and Command-RightArrow to move to the next word break or upper case character in the source code this is really handy when renaming variable names etc,

e.g. If I have "rightAudioFile" and my cursor is at the start of the word I can press Command-Shift-RightArrow and select/highlight just the "right" part of the string then I could rename/cut/copy/paste just that bit.

In visual studio I can use ctrl-Left and Right arrow to move between word boundaries, which is still very handy (you can do it in the stack overflow editor too) but I would like both sets of functionality.

Any ideas how I can set this up in VS2008?

Kris van der Mast
  • 16,343
  • 8
  • 39
  • 61
Aran Mulholland
  • 23,555
  • 29
  • 141
  • 228

2 Answers2

2

CodeRush can do this.

Ryan Lundy
  • 204,559
  • 37
  • 180
  • 211
  • I own it. I've found it to be worth its price, and I haven't noticed any performance problems. – Ryan Lundy Dec 22 '09 at 03:34
  • There's an "Express" version that's free, which you can find here: http://msdn.microsoft.com/en-us/vcsharp/dd218053.aspx I don't know whether it has this particular feature in the free version, though. There's also a trial version you can download from here which definitely has the feature: http://www.devexpress.com/Downloads/Visual_Studio_Add-in/ – Ryan Lundy Dec 22 '09 at 03:36
  • downloaded the evaluation, ill definately use this. whats your favourite trick to use with it? – Aran Mulholland Dec 29 '09 at 00:55
  • The refactoring is the thing I use most. I usually set it to Control-Shift-R so it's handy. You'll notice that it has a "Refactor" and a "Code" section; the Refactor section is intended to change the code without changing functionality, whereas the Code section changes functionality: add a constructor, add an inheritor or base class, change a property, etc. In the most recent version there's automated unit test running; you can run a single test, a class, or a namespace full of tests. – Ryan Lundy Dec 29 '09 at 03:17
  • @Aran Mulholland (and anyone else for that matter) if you have any CodeRush based questions, feel free to contact me (Details available at the bottom of my Community plugin Author page -> http://code.google.com/p/dxcorecommunityplugins/wiki/RoryBecker – Rory Becker Apr 05 '10 at 12:35
1

Resharper can do it as well, using a feature called CamelHumps

Aran Mulholland
  • 23,555
  • 29
  • 141
  • 228