Hit ⌘F to find in file, type in your fancy regex for whatever you’re looking for, and then hit ⌥⏎ to spawn cursors at every match (Pro-tip: ⌘⌥R toggles regex search, and ⌘⌥C toggles case-insensitive search). Sometimes you want to find the next occurrence using regex or a case-insensitive search. Need just a few more cursors? Tap ⌘⌥↑ or ⌘⌥↓ to create cursors above or below the current cursor. Select some text, hit ⌘⇧L, and you’ll have a cursor everywhere that your selected text appears in the file. ⌘⇧L is ⌘D for when you know you want to select every occurrence in the file. ⌘D should solve your multi-cursor needs 80% of the time. Keep hitting ⌘D to find more occurrences and spawn cursors all over your giant files with ease. ![]() Select some text and hit ⌘D to create a cursor at the next occurrence of that text. ⌘D ( Control + D on windows) is the G.O.A.T of multi-cursor editing. ![]() If you’re a VSCode user and yet not familiar with the multi-cursor shortcuts, here’s a quick rundown of what you can do: ⌘D / Control + D VSCode’s (don’t worry, Microsoft is cool now) multi-cursor editing features are a life-saver when it comes to editing these files. It’s everywhere: BOSH manifests, Concourse pipelines, CF application manifests, often huge reams reaching tens of thousands of lines. In the world of Cloud Foundry we often jokingly refer to ourselves as yaml developers.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |