Matlab-Editor-Plugin icon indicating copy to clipboard operation
Matlab-Editor-Plugin copied to clipboard

Double operator (++) should insert "var = var + 1"

Open michaelkonecny opened this issue 7 years ago • 2 comments

When I type

var++

I should get

var = var + 1

not just

var = var +

Also, the cursor should jump behind the "1".

If you agree, I will implement this.

Also, I noticed the enableDoubleOperator is not visible in the clickable options form, but I could find it on some screenshot in the documentation. Is this functionality deprecated?

If not, it should be re-added to the options and also noted in the features/documentation, as I think it's quite useful.

michaelkonecny avatar Mar 20 '17 11:03 michaelkonecny

i did leave it open, because in most cases i didn't need +1 but something else. i don't mind if you change it. what about instead of jumping behind, it could select "1"?

Also, I noticed the enableDoubleOperator is not visible in the clickable options form, but I could find it on some screenshot in the documentation. Is this functionality deprecated?

well... it was originally in the old MEP@Mathworks. i did a quick implementation for myself, i was too lazy to get rid of some issues, and then i forgot to "officially" anounce it (and clean things up).

it needs to be adjusted here (addFeatureSelector - properties) feature.enableDoubleOperator

and here (addFeatureSelector - types ) PropertyType.BOOLEAN

EDIT: property has to be renamed here and here

GavriYashar avatar Mar 20 '17 11:03 GavriYashar

OK.

I'll get on it when I have a moment.

michaelkonecny avatar Mar 20 '17 11:03 michaelkonecny