stephensli / toggler Goto Github PK
View Code? Open in Web Editor NEWToggle words and symbols in VSCode using a user defined configuration.
Home Page: https://marketplace.visualstudio.com/items?itemName=tehstun.toggler
License: MIT License
Toggle words and symbols in VSCode using a user defined configuration.
Home Page: https://marketplace.visualstudio.com/items?itemName=tehstun.toggler
License: MIT License
If selection is empty, toggle the word under or next to the cursor (using API method getWordRangeAtPosition() ?).
This way you don't have to select the word prior executing toggler.
Thanks for this great plugin.
Without a selection, after toggling, some (random) parts of the words get selected making it unable to toggle anymore.
The selection seems to always happen at the end of the word but the length is not always the same:
This does not happens when selecting the word to toggle.
VSCode v1.14.0
Without selection, if we take the test
=> test.only
toggle, the cursor position leads to totally unexpected result.
The ^ indicates the cursor position.
test
will transform into test.only
.
^
test.only
will transform into test.only.only
.
^
test.only
will not even trigger a toggle.
^
test.only
will not even trigger a toggle.
^
test.only
will transform into test.only.only
.
^
edit: Filed in wrong repo
I use the extension mostly for changing from double quotes to single quotes in current "string"
. But doing it by every "
is slow, even if you do a multi cursor selection.
Make a setting to allow changing all matches in selected text, so that if I select: "string"
and press the shortcut it will switch to all combinations of "
, or if there's a match to the entire selection, do the same.
"string"
// to
'string'
// to
`string`
// to
"another-string" // if any
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.