History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: RSRP-35706
Type: New Feature New Feature
Status: Open Open
Priority: Normal Normal
Assignee: Oleg Stepanov
Reporter: Grant Drake
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
ReSharper

Insert a semi-colon in appropriate place

Created: 14 Feb 07 16:24   Updated: 03 Oct 07 16:17
Component/s: Code Editing
Fix Version/s: Future Versions
Security Level: Everybody (All jira users)

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown

Build: 349


 Description  « Hide
One of the less desirable aspects of auto inserting closing quotes and closing brackets is that no effort has been made to insert the closing semi-colon afterwards.

This results in some annoying extra "navigation" that has to be done to move the cursor over the auto-inserted closing quotes/brackets just to add a semi-colon.

Surely 99% of the time if I do a new on an object, invoke a method or create an expression with a string that is going to be the only remaining code on that line?

This should be very easy for you guys to implement I would have thought. You just need to identify whether there is any text already after the current cursor location on the current line. If not, then make the assumption a semi-colon is required.

e.g. if I type:
string test = "

At that point Resharper should kick in to change this to (underscore representing cursor):
string test = "_";

Without this feature we have to continually hit the End key, use the right-arrow or indeed type out the closing brackets/quotes just to go to the end of the line so we can type a semi-colon which is so unnecessary imho.

Pretty please



 All   Comments   Work Log   Change History      Sort Order:
There are no comments yet on this issue.