-
Notifications
You must be signed in to change notification settings - Fork 30k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improved column selection (Alt+select) #5402
Comments
You can knock the assumed off sublime, I can confirm it works that way. The shortcut isn't |
Today, the column selection is piggy-backed onto the multi-cursor support (i.e. it is logically represented and consists of multiple cursors). This makes it indeed behave differently than Visual Studio, for example. That being said, with the exception of empty lines (virtual whitespace) we are not that far: @dvlsg We have multi-cursors since v0.1.0. Please see https://code.visualstudio.com/docs/editor/editingevolved#_selection-multicursor |
Oh awesome! My apologies for missing it in the release notes -- thanks for taking the time to add the link, I appreciate it. |
#11830 may provide a more clear description of the expected behavior. |
@nholthaus unfortunately I don't think this can be implemented until virtual space is implemented - that should probably be a feature request of its own. |
@nholthaus From #11830 Most programs with column mode (visual studio/notepad++/kdevelop/etc) have the following user experience:
This is not how Visual Studio 2015 behaves for me: |
@alexandrudima yeah but visual studio also has an |
Oh, ok, we only added the |
Cool. I'm not concerned at all if the shortcuts don't match, as long as the functionality could be accessible somehow. |
@alexandrudima Also (on Kubuntu) |
We have had the report multiple times. It boils down to supporting customization of mouse shortcuts (#3130) |
@alexandrudima do you intend to implement virtual space in the furture... e.g. hold alt and click somewhere where there aren't any characters yet still have a caret there? Typing then inserts the spaces up the caret automatically. |
I don't mean to nag :) ... I just wonder these questions every time I work with multiple cursors and block selections in Code. Having these features behaving like in Sublime (from which migrated to Code, mainly because of the debugging tools) would be such a workflow-booster! ❤️ |
Editors that could be added to the list are jEdit (it uses I think column selection should definitely use |
It would be good if I could alt-drag without shift. In general, a drag means select and alt drag means select rectangle. alt-drag works in many other places including away from coding editors, e.g. MS Word & the default Mac OS terminal. Shift-click means create a selection from the current cursor location to the mouse position. Subsequently dragging it can be used to make adjustments. The two are separate things that can be used together, or one at a time. Shift-alt-click should start the rectangular selection from the current cursor position, which it does. Alt-drag with no shift should start a new selection from the initial click of the drag. |
it should be closed because ???? it is not standard, the workaround is not
the same as compatible
Closing implies resolution. Is the resolution that this is a permanent bug
that is not going to be fixed?
Or is this just a cynical closing of a legitimate issue to distort the
statistics of code quality?
…On Tue, May 31, 2022 at 9:16 AM sirdeniel ***@***.***> wrote:
Use shift + alt for rectangle selection. This issue should be closed now.
—
Reply to this email directly, view it on GitHub
<#5402 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACHMT3N6DL6D6DPJ43DBVZ3VMYUMRANCNFSM4CBECQTQ>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
@velociwabbit My bad, I didn't read all the context. I will be more careful next time, sorry. My only intention now is to point the shortcut. |
That shortcut you mention is not the feature that is being requested. What you're suggesting is linked in th OP as #1515 but it's incomplete and lacking. |
I think there's two issues being bundled here:
All I want is a match in Sublime and many many other editors where alt+click and drag starts a multi-line select from the cursor. Basically can we please keybind what the middle mouse down selection is already doing? |
I am frankly stunned that this issue has not been addressed. The general consensus among experienced developers is that the vscode editor compared to visual studio is a toy. This is one single issue that one can point to to show how half baked the product is. The ONLY rationale for not fixing this is that it would accelerate the movement from visual studio and its high corporate cost and therefore revenue towards this newer dev editor (vscode) . |
Pretty sure that's also using multiple cursors to simulate rectangular selection. It's not really rectangular selection, just a quick way to set up a bunch of cursors, each with their own selection attached. |
We're very close to 6 years (!!) since this feature was requested. Many other editing solutions support virtual/implicit spaces for column selection. Even SQL Server Management Studio (SSMS), which is primary targeted for database management and also support database development supports this for many years. SSMS doesn't even come close to VSCode capabilities with respect to powerful code editing. I'm a database & SQL specialist, not a a developer, but cooking at the capabilities of vscode like multi-select/edit, how can it be that vscode developers are not capable to add virtual spaces? What does it take to get vscode developers to finally adopt this suggestion and implement it? Until this is implemented, has anybody found an extension that adds this feature? |
I'm also still waiting for this - thanks for keeping hope alive! I think Visual Studio 2022 has it, in addition to Visual Studio 2015 (!) as noted above. |
I'm gonna unsubscribe from this issue. I don't see it happening anytime soon. And after using vscode sporadically, my two other main gripes with it are the memory bloat for something as simple as a text editor. Because of that, other stuff gets OOM-killed, especially during parallel compilation. The other gripe is the lack of responsiveness for simple stuff like scrolling or moving the cursor, especially for things like larger syntax-highlighted markdown files. I'm happy with SciTE + the command line. Maybe I'll even migrate to vim in the next decade, who knows. |
Yeah, I'm out too. Life's too short. Deleted VScode. |
I have concluded that vscode is a toy created by second rate coders more
interested in getting the right answer from their teachers than getting the
product right.
It is useful for things that do not require creative innovation such as SSL
connections or github.
the rest of it is worse than doggy doo doo
…On Fri, Apr 7, 2023 at 9:25 AM Matt Sephton ***@***.***> wrote:
Yeah, I'm out too. Life's too short. Deleted VScode.
—
Reply to this email directly, view it on GitHub
<#5402 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACHMT3JXCDWSRXJHKYKEVIDXAAWWJANCNFSM4CBECQTQ>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
I agree. VSCode feels more and more like it's written by a bunch of glue-logic "coders" who are committed to feature creep over quality and basic functionality. The electron/cef bloat is ridiculous and the functionality is substandard and implemented with sledgehammers. I'm tired of waiting for simple stuff like this to be done while I see more and more bloat being added with every release. If I wanted to use a js-encrusted browser window to edit code, I'd buy a Chromebook, not a PC. Time to find something else. |
Of course they have it. This is not an "advanced" or "modern" feature. The "real" Visual Studio had it already in the 1990s. I repeat. DECADES ago. Virtual Space has always been an obvious standard out-of-the-box feature that any editor had, that has been lost to the sands of time only because a series of unfortunate coincidences about what was favored by the fads of the moment. |
I did some work at MS a few years ago as a consultant. I was shocked at
the change in culture from when I worked with them in the 80s and 90s. It
used to be that ms was notorious for untoward behavior externally but very
tolerant of any behavior that led to getting products done that would
dominate the market.
Their culture has changed dramatically. They have become a woke version of
1980s HP where perceived social faux pas were fatal but poor product
delivery was tolerated.
HP proved that well-mannered but second-rate employees eventually turn a
competitive company into a consulting zombie.
They have a slam dunk with Azure but will mess it up because a person's
performance has a lower priority than behaving in a culturally
acceptable fashion.
The only people I met I respected there have left.
…On Sat, Apr 8, 2023 at 2:43 AM Manuel Montoto ***@***.***> wrote:
I'm also still waiting for this - thanks for keeping hope alive! I think
Visual Studio 2022 has it, in addition to Visual Studio 2015 (!) as noted
above.
Of course they have it. This is not an "advanced" or "modern" feature. The
"real" Visual Studio had it already in the 1990s. I repeat. DECADES ago.
Virtual Space has always been an obvious standard out-of-the-box feature
that any editor had, that has been lost to the sands of time only because a
series of unfortunate coincidences about what was favored by a series of
fads.
—
Reply to this email directly, view it on GitHub
<#5402 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACHMT3KCLXCEDKSV6QPYFETXAEQKBANCNFSM4CBECQTQ>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Anyone else still waiting for Alt + select? |
I find it utterly baffling that it's been OVER 7 YEARS since this was requested and it's still ignored. Not only that, but the keyboard shortcuts make no sense at all. Check out this insane behaviour:
??? This proves that modifier+drag select is fully possible and supported. They clearly took the keyboard shortcuts, multi-cursor mode setting and functionality and just threw dice to decide how they should be connected. Not only does modifier+drag select functionality disappear entirely if you use the default |
Good grief. I just tried to see what box select was for the Mac and stumbled here. What a mess. For the record, I use both Mac and PC. Subscribing. |
If it wasn't for the HLSL highlighter, I would've bailed. |
Because of this insanity and the overall lack of precision of the vs code
editor I have reverted back to visual studio.
And visual studio search is so bad now that i have implemented my own
system to do complex searching.
Ms internally is a sh__storm of woke stupidity (and i am a progressive)
and the coder quality is at best pedestrian.
I almost prefer the borg version (but not really)
…On Fri, Oct 13, 2023 at 10:48 PM Hai Nguyen ***@***.***> wrote:
I find it utterly baffling that it's been OVER 7 YEARS since this was
requested and it's still ignored. Not only that, but the keyboard shortcuts
make no sense at all. Check out this insane behaviour:
editor.multiCursorModifier = alt:
- Ctrl+drag: regular select
- Alt+drag: regular select
- Ctrl+click: go to definition
- Alt+click: create multiple cursors
editor.multiCursorModifier = ctrlCmd:
- Ctrl+drag: regular select
- Alt+drag: block/column select
- Ctrl+click: create multiple cursors
- Alt+click: go to definition
??? This proves that modifier+drag select is fully possible and supported.
They clearly took the keyboard shortcuts, multi-cursor mode setting and
functionality and just threw dice to decide how they should be connected.
Not only does modifier+drag select functionality disappear entirely if you
use the default alt setting, but if you use the ctrlCmd setting, the
function to create multiple cursors is on a *different key* to
modifier+drag select functionality! Who *does* that??
If it wasn't for the HLSL highlighter, I would've bailed.
—
Reply to this email directly, view it on GitHub
<#5402 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACHMT3IW5IVC7TZ76OXHL5DX7IKRHANCNFSM4CBECQTQ>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
I feel much the same. This project is doomed to eternal glue-logic and feature creep with very little apparent skill or care. The amount of memory it uses just to be a text editor is atrocious, never mind the lack of movement on basic universal needs while the strangest, most niche platform compatibilities are added ad nauseum has made my mind up for me. I'd never used Sublime before, but now I've tried it and it is absolutely the minimalist editor I want. I don't need an IDE capable of tracking my every thought and integrating with a hundred different languages. I just need a decent code editor. I'm out, goodbye VSCode, it seriously hasn't been nice to know ya. I recommend someone on the steering team for this project open their eyes to just how horribly bloated and misdirected it is. Recruit some senior software engineers, and I do mean literally senior, and ask them what's wrong with it, and do what they tell you to do, e.g. make it 10x more modular so it's not taking up gigs of memory, focus on getting the actual TEXT EDITING solid and complete, etc. Edit: You know, it occurs to me that any truly senior dev is going to abandon this editor in due time, meaning that the only people left using it will be the ones who don't know any better and won't complain about the things they don't know could be better. That's kind of sad for them. |
I agree with you.
…On Mon, Nov 13, 2023 at 7:01 AM Felice-Enellen ***@***.***> wrote:
Because of this insanity and the overall lack of precision of the vs code
editor I have reverted back to visual studio.
I feel much the same. This project is doomed to eternal glue-logic and
feature creep with very little apparent skill or care. The amount of memory
it uses just to be a text editor is atrocious, never mind the lack of
movement on basic universal needs while the strangest, most niche platform
compatibilities are added ad nauseum has made my mind up for me. I'd never
used Sublime before, but now I've tried it and it is absolutely the
minimalist editor I want. I don't need an IDE capable of tracking my every
thought and integrating with a hundred different languages. I just need a
decent code editor. I'm out, goodbye VSCode, it seriously hasn't been nice
to know ya.
I recommend someone on the steering team for this project open their eyes
to just how horribly bloated and misdirected it is. Recruit some senior
software engineers, and I do mean literally senior, and ask them what's
wrong with it, and do what they tell you to do, e.g. make it 10x more
modular so it's not taking up gigs of memory, focus on getting the actual
TEXT EDITING solid and complete, etc.
—
Reply to this email directly, view it on GitHub
<#5402 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACHMT3LX75SGPGTGDE2CBRTYEIR4PAVCNFSM4CBECQT2U5DIOJSWCZC7NNSXTN2JONZXKZKDN5WW2ZLOOQ5TCOBQHAZDEMBUGU4A>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
02/29/2024, still not possible to bind mouse wheel click to
And so cannot select multi lines with my mouse only like in JetBrains IDE :sigh: |
Still waiting |
Why is virtual-whitespace still pending? We've been waiting over a decade now! This is the only reason I don't use VSCode, but the pressure to move to VSCode is constantly increasing as VS-proper continues to lose relevance... Please can someone actually comment on why this is still pending, and if it's ever coming? |
FYI for other people subbed to this issue, there is work being done on virtual space: Mentioned at the (current) tail end of #13960, in this comment by the change's author, @x17jiri. See the comment for details on the fork where it's being worked on and possibly doing testing for them. |
The column selection implemented in #1515 is a start, but it's a bit awkward and unintuitive compared to other editors.
With the following editors or IDEs, you can create a column selection starting from where the mouse is clicked/dragged:
At least Eclipse, Programmer's Notepad, and VS2015 support virtual whitespace as well, creating a complete square/rectangle.
Some of them also don't show multiple cursors, which I think looks better.
Other users were also expecting this behaviour (see here and here).
The text was updated successfully, but these errors were encountered: