vscode icon indicating copy to clipboard operation
vscode copied to clipboard

Virtual Space is not implemented.

Open gregmarr opened this issue 9 years ago • 246 comments

https://blogs.msdn.microsoft.com/zainnab/2010/02/28/understanding-virtual-space/

This is a much needed productivity option that has been available in Visual Studio and other editors for many years.

See also the column select issue that requires it: https://github.com/Microsoft/vscode/issues/5402


Addition from @hediet:

This is (still) the current behavior of VS Code. Only text that exists in the text buffer is selected:

recording

However, the column selection mode should support rectangular selection like this (adding whitespace on demand):

recording

This would fix #5940 (which is just about copy&pasting such blocks) and #115559.

gregmarr avatar Oct 18 '16 20:10 gregmarr

I'm not sure we need a new issue for this if it's just part of #5402. Looks like there's lots of history there already.

roblourens avatar Oct 18 '16 21:10 roblourens

Completely fixing #5402 requires this, but this can be implemented without the changes to column selection.

gregmarr avatar Oct 18 '16 21:10 gregmarr

I see. Virtual Space - https://blogs.msdn.microsoft.com/zainnab/2010/02/28/understanding-virtual-space/

roblourens avatar Oct 18 '16 21:10 roblourens

+1 for this feature. Virtual space is a must-have for me. I really like the editor otherwise, but until this is in I'll have to keep using Visual Studio. I hope it makes it out of the Backlog soon!

eric-777 avatar Jun 24 '17 04:06 eric-777

+1

Neurochrom avatar Jun 27 '17 14:06 Neurochrom

Still no virt space or am I missing something?

itadapter avatar Jul 01 '17 15:07 itadapter

@itadapter: I don't think you're missing something. The feature isn't there. Looking at related threads about column select features, it appears the stance is that column select doesn't require virtual space. To my knowledge, @alexandrudima hasn't responded directly to anyone about virt space, only to questions about column select.

Virtual space isn't available in Atom or Sublime either. I always thought BRIEF was a common background for programmers looking for a non-IDE experience, but apparently not if all 3 of the modern alternatives do not implement the feature.

eric-777 avatar Jul 01 '17 17:07 eric-777

It would be very nice to have virtual space feature in vscode.

ak-hpc avatar Jul 11 '17 11:07 ak-hpc

These are common things I do in my other editor. If there's a way to do them in VSCode that would be great. Seems like they need virtual space

monsters

If you're not a fan of aligning tables many coding standard align comments

comments

Those are maybe minor examples but I find that I'm missing them quite a bit moving to vscode. Here's another example

column

vs VScode

multi

This isn't just about comments, it's about being used to column select with cursors in virtual space. In my editor at least which pre-dates multiple cursors (though it has them now) the main cursor can't go into virtual space (well actually that's configurable), but once column selection is started then it can go through virtual space.

greggman avatar Jul 28 '17 16:07 greggman

Executing the "Go to Line..." command when specifying a line number past the end of the file (and/or a column number past the end of the line) should also place the cursor into virtual space.

jeffmadison avatar Dec 06 '17 19:12 jeffmadison

Would it be possible for someone on the dev team to comment on whether the virtual space feature is even a good fit for the editor internals? I'm wondering if it's something I should be hopeful about being added at some point, or if it's perhaps unlikely due to large refactoring cost vs minimal benefit (small number of users who really want it).

eric-777 avatar Jan 11 '18 20:01 eric-777

Any progress with this?

tksuoran avatar Mar 28 '18 08:03 tksuoran

+1. There are a few things that prevent me from switching to VS Code, but this is a big one.

BErasmus avatar May 23 '18 18:05 BErasmus

+1. Absolutely a must-have. It's a deal-breaker for me too.

tkimovski avatar May 27 '18 13:05 tkimovski

This is a deal killer! Here I go again opening notepad++ becasue an editor does not have a feature that is part of my daily workflow!

ChrisTuckerNM avatar Jul 17 '18 12:07 ChrisTuckerNM

Seriously guys on the Visual code team, communicate to each other in your company because that's one of the most powerful features and it was there for more than 18 freaking years in Visual Studio.

https://blogs.msdn.microsoft.com/zainnab/2010/02/28/understanding-virtual-space/

That's why we use an editor instead of Word (fixed font size and virtual space) when it comes to write code fast.

jchatel avatar Aug 14 '18 11:08 jchatel

@jchatel we have to keep in mind that this product is both free and good when asking for new features. I wouldn't call virtual space a particularly powerful feature. I feel like its absence is more of a high barrier to adoption among many of us who formed our editing technique with it.

Also, I use proportional fonts AND virtual space in VS. They are definitely not mutually exclusive.

I'm encouraged that the issue isn't closed. Perhaps the team is committed to adding the feature but is facing some refactoring costs that need to get planned for. I can imagine that adding virtual space after the fact might break a lot of code that can otherwise assume the cursor is always on a physical character.

On the other hand, I've seen the phrase "cursor floating in air" used by a VS Code developer somewhat pejoratively. This discourages me and makes me wonder if the team instead might be considering closing the editor to those who work that way.

Any comment from the dev team on which way this is heading would be pure gold to many of us.

eric-777 avatar Aug 14 '18 18:08 eric-777

There's multiple issues conflated here.

For example in my editor of choice I have virtual space off. But, my editor (like Visual Studio but unlike VSCode) has a column select mode. The column can go through virtual space and is an extremely powerful feature that I use many times a day and end up being frustrated having to tediously manually edit when in VSCode. (see gifs above).

Column editing solves a host of issues that multiple cursors do not (and vice-versa). Both features are important and powerful but at the moment it seems like column editing can not be added without support for virtual space.

greggman avatar Aug 15 '18 01:08 greggman

Column select discussion is here (I think there are others too): https://github.com/Microsoft/vscode/issues/5402

This thread is about virtual space only, described very well by the link jchatel provided: https://blogs.msdn.microsoft.com/zainnab/2010/02/28/understanding-virtual-space/

Virtual space may be a dependency of fixing 5402 to most people's satisfaction, but they are separate. No need to conflate the two here.

eric-777 avatar Aug 15 '18 16:08 eric-777

The conflation comes from your previous comment. You basically said virtual space is mostly useless

I wouldn't call virtual space a particularly powerful feature. I feel like its absence is more of a high barrier to adoption among many of us who formed our editing technique with it.

But it's not useless at all. It's required for column editing since you have to be able to move through virtual space to use columns as columns. Column editing is immensely powerful. So please don't go dismissing virtual space as useless.

greggman avatar Aug 15 '18 16:08 greggman

Conflation is taking two separable issues and muddling them together as though they were the same, not from a subjective judgement about how important one of the two issues is. Some of us who want virtual space aren't bothered by the current column select implementation at all.

Virtual space is not useless. There are many of us in this thread who are eagerly anticipating it's possible implementation, and who can't use VS Code without it.

eric-777 avatar Aug 15 '18 17:08 eric-777

I agree. Not being able to easily get rid of columns of virtual space is a huge deal breaker for me. Was hoping to start using VS Code for work, but i'm going to have to go back to Notepad++.

urscion avatar Aug 17 '18 21:08 urscion

This is an important feature for the editor. I always use it. I would like it implemented.

srgbrito avatar Sep 21 '18 11:09 srgbrito

To add to the chorus... I do a fair amount of editing like greggman's images above show. This is a deal breaker for me as well. No moving my cursor, let me do it and give me a convenient toggle.

Please! :)

jrfl avatar Oct 10 '18 15:10 jrfl

I can't believe this otherwise amazing editor hasn't virtual space. I use it very day, and I have to open a separate text editor (PsPad) just for that.

nippur72 avatar Oct 18 '18 08:10 nippur72

Thanks for your work on Visual Studio Code but I have to agree with the others. Virtual space should be a must have for any code editor. I can't understand why would anyone not want it enabled. If I change the line and then return to the same line the cursor position should remain at the same position that it was. Without virtual space it's going to be in a random position depending on how long are the lines I traversed. I call that behaviour a bug, to be honest.

m6502 avatar Oct 22 '18 10:10 m6502

Everybody could just subscribe to the thread and wait until the contributors have anything valueable to say instead of constantly posting the same "arguments" here. Will anybody lock the thread until then?

paulsmirnov avatar Oct 22 '18 19:10 paulsmirnov

@paulsmirnov That depends on why it hasn't been implemented yet. If it's because there hasn't been enough interest expressed here yet, then additional voices may be helpful. Since we haven't had any feedback here from the VS team in almost 2 years, it's hard to know.

gregmarr avatar Oct 22 '18 19:10 gregmarr

I agree with @gregmarr that more voices = proof of interest = hopefully the team might consider it a priority.

I do wish the comments were a little less entitled feeling. Stuff like "this is deal breaker", like there is no deal. It's a free project. No one owes us anything.

Still hopeful the team will see the utility and decide to add support.

as for @m6502 , I am unable to repo the issue you describe. I made a line with 2 tabs followed by 2 spaces followed by code. Above and below that are lines with 3 tabs. No mater where I put my cursor in the line with spaces going up and down always returns to the same place.

Maybe a gif showing the issue and another showing no issue in some other editor would be helpful to see the issue?

greggman avatar Oct 23 '18 03:10 greggman

Locking the thread might be interpreted by MS as lost interest in the feature and it may never get considered.


From: Paul Smirnov [email protected] Sent: Tuesday, 23 October 2018 6:15 AM To: Microsoft/vscode Cc: tkimovski; Comment Subject: Re: [Microsoft/vscode] Virtual Space is not implemented. (#13960)

Everybody could just subscribe to the thread and wait until the contributors have anything valueable to say instead of constantly posting the same "arguments" here. Will anybody lock the thread until then?

— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://nam02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FMicrosoft%2Fvscode%2Fissues%2F13960%23issuecomment-431942676&data=02%7C01%7C%7C7364612a6cfb4b50f70a08d63852c62b%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636758325486729722&sdata=%2FFoCmydGTtl85Ot0T87mxFOeuVh9VYQfn%2B8IApWsxec%3D&reserved=0, or mute the threadhttps://nam02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FANLVXcjyAC8FhMT_BiXT7mmtvCZqqOxqks5unhljgaJpZM4KaQAK&data=02%7C01%7C%7C7364612a6cfb4b50f70a08d63852c62b%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636758325486729722&sdata=iSAcpT1iN6%2BhBM%2BpGodOQBp6klgkV5IXFBxtrNysdJ8%3D&reserved=0.

tkimovski avatar Oct 23 '18 04:10 tkimovski