4 ms·
I’m quite capable of dealing with the mental breaks and prefer an editor that can save me some typing. The only improvement for me would be able to say “switch
by melling 8y ago
I’m quite capable of dealing with the mental breaks and prefer an editor that can save me some typing. The only improvement for me would be able to say “switch statement (3 cases, no default)”
swi<TAB>
switch <cursor> {
case <tab location>:
<tab location>
default:
<tab location>
}
Actually, if I could say “switch on enum X” then have all cases generated, that would be a huge productivity gain.
- blunte 8y agoFair enough. I guess it depends a lot on the language. I use mostly Python, Elixir, and Clojure (my unnaturally desperate love, which I don't use much). For those languages, the syntax is either less verbose (python/clojure) or less predictable (elixir). If I were doing Java or C/C++, I would probably learn to love templates and expansions.
- Foivos 8y agoYou are describing code snippets. This feature is available at least in vs code [1], but I think other editors have similar features. [1] https://code.visualstudio.com/docs/editor/userdefinedsnippets https://code.visualstudio.com/docs/editor/userdefinedsnippet...