This is a migrated thread and some comments may be shown as answers.

Please...

4 Answers 49 Views
Code Generation
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
sitefinitysteve
Top achievements
Rank 2
Iron
Veteran
sitefinitysteve asked on 22 Mar 2011, 09:46 PM
If it's not a global thing, give us options

Here's the code
retVal = 1;

If my cursor is here
retVal = <cursor>1;

and I type a quote...

Give me the option to pick my default action (not in a popup, but in the options screen)
1) Wrap the 1 in quotes
2) Just use a single quote in front of the 1
3) DoubleQuotes in front

I would bet #3 would almost never be set by anyone, yet that's the default (and only) action right now.

Defaulting to this:
retVal = "<cursor>"1;
Is getting so annoying, it causes you MORE keystrokes because if you just wanted the one depending on which you delete it might delete both and cause you to re-do it

4 Answers, 1 is accepted

Sort by
0
sitefinitysteve
Top achievements
Rank 2
Iron
Veteran
answered on 22 Mar 2011, 09:48 PM
Video of what I mean...this adds more keystrokes for me

http://screencast.com/t/eduiGFYCT
0
Ivo Bratoev
Telerik team
answered on 30 Mar 2011, 01:36 PM
Hi Steve,

Thanks for the great feedback.
We see more and more people requesting this. We will definitely consider these improvements for the next release.
While looking in your specific case we came up with another idea - a new keyboard shortcut to enclose selection with quotes: Ctrl+". Would like to see such feature in JustCode?

Kind regards,
Ivo Bratoev
the Telerik team
0
sitefinitysteve
Top achievements
Rank 2
Iron
Veteran
answered on 30 Mar 2011, 01:57 PM
Not really :)

I'd rather have it know that if my cursor was butted up against some text it just puts a single, and maybe if I hit Ctrl-" it puts the single and throws the closing quote somewhere else on the line (but detection might be hard)

Or, I dont know if it does this now, but if I have a block of text selected and hit " have it wrap in the quote (which is essentially what I'm trying to do.

The unintelligent forced double right now is just a pain in the ass

Steve
0
Ivo Bratoev
Telerik team
answered on 06 Apr 2011, 08:58 AM
Hello Steve,

Thanks for the feedback.
We will implement improvements for the typing assistance in the upcoming service pack. The improvements will be in the direction of not automatically closing double quotes in some cases (yours is one of them). We plan an internal build in the beginning of next week. Feel free to give it a try.
We will consider adding all or some of your suggested options for the Q2 release.

Regards,
Ivo Bratoev
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
Code Generation
Asked by
sitefinitysteve
Top achievements
Rank 2
Iron
Veteran
Answers by
sitefinitysteve
Top achievements
Rank 2
Iron
Veteran
Ivo Bratoev
Telerik team
Share this question
or