r/programming • • Apr 19 '21

Visual Studio 2022

https://devblogs.microsoft.com/visualstudio/visual-studio-2022/
1.9k Upvotes

475 comments sorted by

View all comments

Show parent comments

0

u/[deleted] Apr 19 '21

[deleted]

114

u/AttackOfTheThumbs Apr 19 '21

VS Code still refuses to implement the traditional Insert key functionality

I didn't realize people actually use that. And here I am thinking, let's remove that key from the keyboard lmao

As someone with an ultra wide, I really which they allowed a left and right view for it, i.e. vertical triple pane. Because yeah, switching between debug and files/vc is weird. Having extensions where they are is dumb. And I wish it supported a full screen multi mon mode.

102

u/sysop073 Apr 19 '21

I think OP is one of four people on the planet who actually uses that, which is probably why VS Code hasn't made it a priority (or "refuses to implement" it if you want to ascribe malice to them ignoring your pet feature)

0

u/[deleted] Apr 19 '21

[deleted]

78

u/dacjames Apr 19 '21 edited Apr 19 '21

You're the first person I've ever heard of intentionally using the insert key. It's been around for a long time, but I wouldn't exactly call it commonly used.

19

u/[deleted] Apr 19 '21

I use it sometimes as well, so there are two of us you now know. Although I started writing code in the 1980s so maybe my age is showing

14

u/dacjames Apr 19 '21

In what circumstances would that be useful? I'm genuinely curious.

The only use case I have ever found for insert mode is when editing ASCII diagrams in comments where you want to overwrite spaces or hyphens to maintain alignment.

19

u/_realitycheck_ Apr 19 '21

Changing camel case, rewriting formatted comments, formatting, rewriting enumerations...

I mean it's there to edit text. Code is text.

5

u/ICantMakeNames Apr 19 '21

I find it easier to select what I want to replace, so that it is all deleted when I start typing the new thing.

3

u/dacjames Apr 20 '21

I mean it's there to edit text. Code is text.

Well, yeah, but insert is never really required so I guess I was asking about the editing scenarios where insert mode is the most efficient choice.

Changing camel case

FWIW, most editors (including VS Code) have dedicated commands for changing case of letters. Cmd+k,Cmd+u for me, using the sublime text keymap. I prefer to build muscle memory with commands like that since they're more useful when editing multiple places simultaneously.

Editing enums kind of makes sense. Personally, I would just select first or use a find/replace or multi-line edit if the enum is in use but I can see the value.

→ More replies (2)

5

u/ihatethisplacetoo Apr 20 '21

I started writing in the late aught's and I use the insert key pretty regularly, probably at least once, maybe twice, a day.

3

u/_d4ngermouse Apr 19 '21

80s coder checking in. Bring back Borland C++ Builder!! /s

→ More replies (4)
→ More replies (1)

3

u/15rthughes Apr 20 '21

Shift-R has been a feature of Vim for decades and I use it daily, it’s not exactly uncommon.

→ More replies (5)

9

u/AttackOfTheThumbs Apr 19 '21

The insert key is hardly a pet feature but a common editing shortcut found in IDEs to allow overtyping blocks without having to deal with formatted structures.

I mean, shouldn't your linter/formatter be taking care of that stuff automagically anyway? I never think about formatting.

3

u/[deleted] Apr 20 '21

There's a really good VIM plugin for VSC. Comes with all the neat tricks.

→ More replies (2)

11

u/_BreakingGood_ Apr 20 '21

Yeah, the insert key only serves 1 function to me: piss me the fuck off when I accidentally press it

2

u/thelehmanlip Apr 20 '21

I rebound the insert key with autohotkey so it will never ever get turned on

→ More replies (3)

43

u/chucker23n Apr 19 '21

Quality of life wise, VSCode in refusal to let you just have debug options and file explorer views at the same time is pretty god damn awful too.

This weird information hierarchy trips up my mental model, too. Why is Extensions, for instance, a tab (as opposed to a separate window or modal dialog)? It has absolutely nothing to do with the current workspace. Every time I go there, I'm confused how to get back to my current project.

34

u/_______________l Apr 19 '21

A possible reason for the current design could be Electron’s poor support for multiple windows. AFAIK, every new window is a new (heavyweight) browser process. There are virtually no electron apps with floating windows.

4

u/chucker23n Apr 19 '21

Yeah, that could be part of it. (I guess I would prefer if something like Extensions took up the entire window, then. It just makes no sense to list extensions on the left side and then show your project's text editors on the right side.)

In recent versions of Teams, they made some windowing improvements: you can pop out chats, and video conferences always run in separate windows. So I guess there have been improvements, but it feels very 1983. Like, literally, the original Mac had better windowing support.

→ More replies (2)

15

u/StillNoNumb Apr 19 '21

https://marketplace.visualstudio.com/items?itemName=adammaras.overtype

The extension isn't perfect, but it does its job. If you really want the feature natively, you can try submitting a PR

→ More replies (1)

17

u/Chemoralora Apr 19 '21

This plus lack multiple monitor support makes it unviable for me

4

u/RirinDesuyo Apr 20 '21

That's an electron issue if I recall. Electron in general always had really poor support for multiple windows (you had to create yet another heavy browser instance to emulate it) so I doubt that's gonna get solved anytime soon.

This is one thing that VS does really nicely and with multiple monitors it's really nice to work with.

9

u/[deleted] Apr 19 '21

Aye. Visual Studio's UI has some issues, but overall it's pretty awesome. My main problem is performance, and that's not the UIs fault.

Unless we're talking about Visual Studio for Mac aka. MonoDevelop, which I personally don't like very much.

15

u/nascentt Apr 19 '21

Overtype? Seriously in the 21st century?
I even made a program to disable it because it only ever gets hit accidentally

→ More replies (4)