Page 1 of 1

Surround With in VS 2012 is very buggy

PostPosted: October 12th, 2012, 12:22 pm
by imparente
I have installed DPack 3.5.1 (beta 4) in my Visual Studio 2012 Ultimate.
Feature Surround with doesn't seem to work correctly.
I have my custom mapping and I use c#. Only feature from DPack I use is "Surround with". Other features are turned off. During installation I choose not to make any changes to keyboard scheme ...

Bug #1:
When I select text and press Ctrl+K,R (surround with #region block) it just notifies
"The key combination of (Ctrl+K, R) is bound to command (Region) which is not currently available." and nothing happens.
This issue was in VS 2010 too, but I used to select Surround With > Region from Context menu for the first time and since then it was working. But now there is no Option Surround with > Region in my Context menu (just try..catch, try..finally, foreach|while, If, switch).
The same thing happens to other mapped key combinations. Until I use them from the context menu, mapped key combinations don't work.

Bug #2:
Context menu shows wrong key mapping. My key mapping is:
if ... Ctrl+K,I
ifelse ... Ctrl+K,L
foreach ... Ctrl+K,E
for ... Ctrl+K,F
region ... Ctrl+K,R
while ... Ctrl+K,W
switch ... Ctrl+K,S
etc.
But the context menu shows different shortcuts (see attached screenshot)

Bug #3:
when I select Surround with > If from the context menu
then it surrounds my selection with Visual Basic syntax instead of c# syntax

Re: Surround With in VS 2012 is very buggy

PostPosted: October 14th, 2012, 11:39 pm
by Sergey
Hi,

Thanks for bringing it up. I've noticed some oddities similar to the ones you had reported while using VS 2010 as well. I do get a subset of all menu items for sure, item #2 on your report. I suspect it got broken while I was working on VS 2012 support.

Will look into that for the next beta. Thanks for your but report.

Re: Surround With in VS 2012 is very buggy

PostPosted: October 15th, 2012, 10:31 pm
by Sergey
Fixed for the next beta. It was totally borked in the latest version. Thanks again.

Re: Surround With in VS 2012 is very buggy

PostPosted: December 27th, 2013, 12:47 am
by samith
This issue was in VS 2010 too, but I used to select Surround With > Region from Context menu for the first time and since then it was working. But now there is no Option Surround with > Region in my Context menu (just try..catch, try..finally, foreach|while, If, switch).

_______________________
braindumps.com
https://www.iseb.co.uk/
http://ucsd.edu/
http://en.wikipedia.org/wiki/ISEB_(disambiguation)

Re: Surround With in VS 2012 is very buggy

PostPosted: December 28th, 2013, 9:01 pm
by Sergey
Hi,

samith wrote:But now there is no Option Surround with > Region in my Context menu (just try..catch, try..finally, foreach|while, If, switch).


Which version of DPack are you seeing that with (Help|About)? Also, which Visual Studio version is that for?

Thanks for reporting the problem.