DEV Community

loading...

Discussion on: ๐Ÿ’ปThe guide to Visual Studio Code shortcuts, higher productivity and 30 of my favourite shortcuts you need to learn

Collapse
edoardoc profile image
Edoardo Ceccarelli

shift+alt + select with mouse will give you a rectangular selection / column selection... also, middle mouse click does it.
Unfortunately works for mac only (at least for me), on Linux there seem to be some conflict with window movements, I have not tried it on Windows and I'd like to know.

code.visualstudio.com/updates/v1_2...

Collapse
lampewebdev profile image
Michael "lampe" Lazarski Author • Edited

Ahh okay!

Yeah, that works on windows for me but I don't use that.

Can not think of any situation where i need that ๐Ÿค”

Thread Thread
edoardoc profile image
Edoardo Ceccarelli

yes, it isn't really an everyday thing but it can be useful when editing SQL or old languages where column alignment is everything. To tell you the truth I started using that on the native os x text editor, you just press option and start dragging around, the cursor becomes a cross and all makes a bit more sense :)

Thread Thread
lampewebdev profile image
Michael "lampe" Lazarski Author

Okay, usually when I work with SQL it is not directly SQL but some layer over SQL ;)

So with what old languages are you still working with?

Thread Thread
edoardoc profile image
Edoardo Ceccarelli • Edited

yes, that is what one should do (in fact lately I am dropping SQL all together), but the box selection I used it a lot when I was creating ui elements in objective c with this tool, ASCIImage that transforms a string like this:

+ (UIImage *)chevronImageWithColor:(UIColor *)color
{
NSArray *asciiRep =
@[
@"ยท ยท ยท ยท ยท ยท ยท ยท ยท ยท ยท ยท",
@"ยท ยท ยท 1 2 ยท ยท ยท ยท ยท ยท ยท",
@"ยท ยท ยท A # # ยท ยท ยท ยท ยท ยท",
@"ยท ยท ยท ยท # # # ยท ยท ยท ยท ยท",
@"ยท ยท ยท ยท ยท # # # ยท ยท ยท ยท",
@"ยท ยท ยท ยท ยท ยท 9 # 3 ยท ยท ยท",
@"ยท ยท ยท ยท ยท ยท 8 # 4 ยท ยท ยท",
@"ยท ยท ยท ยท ยท # # # ยท ยท ยท ยท",
@"ยท ยท ยท ยท # # # ยท ยท ยท ยท ยท",
@"ยท ยท ยท 7 # # ยท ยท ยท ยท ยท ยท",
@"ยท ยท ยท 6 5 ยท ยท ยท ยท ยท ยท ยท",
@"ยท ยท ยท ยท ยท ยท ยท ยท ยท ยท ยท ยท",
];
return [self imageWithASCIIRepresentation:asciiRep
                                    color:[UIColor blackColor]
                          shouldAntialias:NO];
}

into these hi res images, on the fly:
chevron rendered
it really helped a lot although you end up creating the weirdest copy and paste combinations - hence the box selection :)

Thread Thread
lampewebdev profile image