So I would say the moving around thing I have internalized and I'm trying to remember that adding shift gives, it is stamping that all over the place. If I add shift to that and hit down I'm copying this line. So here is how I like to remember it, if I hold down option, I can use the up and down arrows to move this line wherever I wanna move it. Like there are people who you could steal their mouse for a day and they wouldn't even notice, I am not one of those people. Most of it is not stuff that I would end up using. Each cursor operates independently based on the context it sits in. You can add secondary cursors (rendered thinner) with Alt+Click. All right, so line manipulation and this is a subset but I feel like it's the attainable subset for line manipulation. VS Code supports multiple cursors for fast simultaneous edits. It 'd be really nice to bring it all at once. And in this case that particular term is probably used 30 times in this file. > Mike: Well, sorry I messed it up there, but effectively we were able to grab everything and then get rid of this one and that one there. Microsoft Visual Studio Code Multiple Cursors - Multi SelectionMulti selection in VS Code allows you to edit a file in multiple places at the same time. > Mike: Select everything and then we on click. Control command g, so I could say get everything but remove just that one there. So you could select everything, like we could do this what was it, I haven't internalized this one yet. And I alt click on this, it'll actually get rid of the selection as well not just the cursor which is exactly what we would want in this case. And it appears to also work with like if we have that multi selection going on here. And I will update this that option click also remove a cursor if you click on that exact cursor. The values are preserved on a per cursor basis. It kind of remembers that each cursor gets to hold onto it’s own value, and then when you paste it out it goes. So while I would go back here and type like li and everyone gets the same thing, I can actually grab all of this, cut it move my cursor into the middle and paste. It's almost like each cursor get to do in a little slot and a clip board. Select them, one of the cool things about multi-cursor support and this works as it does in other browsers. So I could just drag a line of cursors here. > Mike: Like one, two, three, it looks I already did example last night. Really nice for Like if you wanted to grab a bunch of HTML elements and like embed them, or you have a list of items. Alt+Shift and then you can drag up and over like this. > Mike: Sorry it is fooling me by highlighting in kind items. And that let's us do something like this. The way I remember this is, it's multi cursor with Shift. It was just placing cursors, right? If we alt click, it's just those individual positions. Option and click is how we got those little cursors and without the Cmd+D thing. Visualizing the code coverage results from Azure Pipelines in Visual Studio.Visual Studio Tips and tricks: Add project reference using drag & drop.Visual Studio Tips and tricks: Paste as JSON.Visual Studio Tips and tricks: Open the documentation of a symbol.Visual Studio Tips and tricks: Default startup project.Visual Studio Tips and tricks: Find the current opened file in the solution explorer.Visual Studio Tips and tricks: Regex editing.Visual Studio Tips and tricks: Undock/Re-dock a tool window.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |