super-duplicate
Duplicate lines and exchange symbols (x/y, width/height, add/remove, etc..). Usefull for front dev.
super-duplicate package
Duplicate lines and exchange symbols (x/y, width/height, add/remove, etc..). Usefull for front dev.
List of exchange
- x <-> y
- X <-> Y
- w <-> h
- W <-> H
- width <-> height
- innerWidth <-> innerHeight
- WIDTH <-> HEIGHT
- scaleX <-> scaleY
- radiusX <-> radiusY
- true <-> false
- right <-> left
- RIGHT <-> LEFT
- front <-> back
- FRONT <-> BACK
- up <-> down
- UP <-> DOWN
- open <-> close
- OPEN <-> CLOSE
- add <-> remove
- ADD <-> REMOVE
- addEventListener <-> removeEventListener
- r -> g -> b
Extra exchange
If you duplicate again the line you just duplicate you get extra exchange
- x->y->z->w
- X->Y->Z->W
- R->G->B->A
- w->h->d
- W->H->D
- width->height->depth
- WIDTH->HEIGHT->DEPTH
- scaleX->scaleY->scaleZ->scaleW
- radiusX->radiusY->radiusZ->radiusW
Know bugs
If you duplicate the last lines of the files, the duplicated line will be over the original line.
Credit
Inspired by the duplicate FlashDevelop plugin and dev by @makio64