4 ms·
> typing "ABC" Ctrl+Space gives me code completion for AsynchronousByteChannel that's clever. I suspect you could add editor logic to do that with underscores
by m463 4y ago
> typing "ABC" Ctrl+Space gives me code completion for AsynchronousByteChannel
that's clever. I suspect you could add editor logic to do that with underscores too.
- pocketarc 4y agoIDEA does something similar - you just type, and as long as the characters are found in the string in the order you typed them, it doesn't matter what's separating them, it will find a match. So ABC would match AsynchronousByteChannel, and abc would match asynchronous_byte_channel. As would asyncbc or whatever else your brain comes up with. It's quite nice.
- moring 4y agoI think IDEA actually splits a CamelCase identifier and expects your input to be a concatenation of prefixes of these parts, in the correct order, but parts may be omitted. Though the latest version goes further and also detects flipped characters, so maybe levenshtein distance on top of that.
- brabel 4y agoOn Emacs, this is called "fuzzy" search and is easy to enable everywhere (autocompletion, file search, text etc).
- xlii 4y agoAnd just yesterday I started toying with “orderless” Emacs package which allows that (and more!) - both for underscores and camel case. Since such features often cross environments I wouldn’t be surprised if other editors/IDEs had similar stuff.