More multiple cursor magic 🪄

preview_player
Показать описание
How to add a cursor to every line #shorts
Рекомендации по теме
Комментарии
Автор

The VSCode team thinks of so many thing I didn't even know I needed!

TomDoesTech
Автор

I did a similar thing but it had all words in the dictionary. I had them stored in a database to make the word validation times quicker. Couldn’t really think of a better way. The JS made a XHR to a php API that communicates with the dB.

Alec
Автор

Cool and well-know VSCode feature, but I mean you could as well read the file from the URL directly, and save so many lines of code.

athief
Автор

I usually use alt + shift magic with Home and End button, it would be more straight forward 😂

chongcaleb
Автор

Why didn't I know of this when I needed this 😔😔

dalgo_na
Автор

using "end" and "home" keys is actual magic sometimes. when doing repeating work with macros or stuff like this

ocaly
Автор

Oh my, my secret skill is introduced here.…

jeffkevin
Автор

Learn regex replace. Every major editor has this feature, including VS Code. If you're doing any kind of development you should know how to write regexes anyway.

conundrumu
Автор

split('\n'): am I a joke to you?

infinity
Автор

VsVim users be like :
"Look what they do to mimic a fraction of our power"

TinyTiniaMan
Автор

Lol. I've just been replacing \n with ", \n" ... Regex style

TheSkepticSkwerl
Автор

This project was a huge relief as wordle only allows one game per day. And thank you for mentioning me. ☺

rahulr
Автор

Vim version: Press C-v to select columns. Then press I to insert in each column.

Or you could just use a Vim macro.

wile
Автор

When i need to do this, i usually do a Find+Replace the \n with ", \n\t". The cursor strategy might be faster, though. :)

Jakob
Автор

NeoVim/Vim users:
"Look What They Need to Mimic a Fraction of Our Power"

savantshuia
Автор

Isn't it easier just to store a file containing all of those and then just read it and then pick a random word from line array?

temmie
Автор

Fun fact: vim has had this feature (in an easier way) since many years ago

utilyre
Автор

What I do is put the words without a quote in a csv and then upload this to a sql server and then I write a quick Django app with a list template and just simply copy and paste the results of that once running the app, and then I write all the words out one by one and add quotes to each as I do 👍🏻

happywednesday
Автор

My personal way is to use Notepad++'s search and replace feature in extended or regex mode (regex only for edge cases and difficult tasks).
With extended mode, you can do something like
Find: \r\n
Replace with: \r\n"

Find: \r\n
Replace with: ", \r\n
And voila

csharpcoffee
Автор

Ctrl+H, match (\n\t), replace (, \n\t)

I'm just using the parentheses for clarity, but it also wouldn't matter for the matching if you use regex.

demeter