microsoft / vscode

Visual Studio Code
https://code.visualstudio.com
MIT License
163.57k stars 29.02k forks source link

Increase the number of cursors from 10000 #81589

Closed rs6454 closed 1 year ago

rs6454 commented 5 years ago

Hi Team

I do a lot of work editing on text files with line more that 10000,editing of large file is limited due to the The number of cursors has been limited to 10000.

Please increase this limit to 100000 if possible

vscodebot[bot] commented 5 years ago

(Experimental duplicate detection) Thanks for submitting this issue. Please also check if it is already covered by an existing one, like:

rs6454 commented 5 years ago

(Experimental duplicate detection) Thanks for submitting this issue. Please also check if it is already covered by an existing one, like:

this duplicate does not have a solution, Please include this feature

LesterCovax commented 4 years ago

I just ran into this same limitation when editing 20k+ lines at once. In my case it wasn't a big deal as I only had to repeat my actions twice, but for larger files it would certainly be a hindrance. Adding a defaultSettings.json preference (e.g. "editor.multiCursorMaxLines": 10000) that users could increase in their own environments would be much appreciated.

pablo-romano commented 4 years ago

I just ran into this same limitation when editing 20k+ lines at once. In my case it wasn't a big deal as I only had to repeat my actions twice, but for larger files it would certainly be a hindrance. Adding a defaultSettings.json preference (e.g. "editor.multiCursorMaxLines": 10000) that users could increase in their own environments would be much appreciated.

And where do you put the defaultSettings.json ?

LesterCovax commented 4 years ago

@pablo-romano - defaultSettings.json is just a built-in reference file that shows all available settings and their default values. Do a CTRL+SHIFT+P and search for open default settings. It's a useful reference when tweaking your settings file. I just mentioned it, as adding in a new settings option would also imply it's added to the defaultSettings.json.

vscodebot[bot] commented 4 years ago
This feature request is now a candidate for our backlog. The community has 60 days to upvote the issue. If it receives 20 upvotes we will move it to our backlog. If not, we will close it. To learn more about how we handle feature requests, please see our [documentation](https://aka.ms/vscode-issue-lifecycle). Happy Coding!
LesterCovax commented 4 years ago

This feature request is now a candidate for our backlog. The community has 60 days to upvote the issue. If it receives 20 upvotes we will move it to our backlog. If not, we will close it. To learn more about how we handle feature requests, please see our documentation.

Happy Coding!

@alexdima / @vscodebot (or whoever manages it) Can you please clarify the language used in the previous message, regarding upvotes needed to move this to the backlog? Even after reading the included documentation link, and the fact that a Github issue itself cannot be upvoted, it's unclear whether one should upvote the initial post's comment or the comment from vscodebot in order to count towards the requisite 20 upvotes for backlog inclusion. Cheers.

alexdima commented 4 years ago

@LesterCovax I think the opening post should be upvoted:

image

@chrmarti @kieferrm FYI there is some confusion about the bot language.

vscodebot[bot] commented 4 years ago
:slightly_smiling_face: This feature request received a sufficient number of community upvotes and we moved it to our backlog. To learn more about how we handle feature requests, please see our [documentation](https://aka.ms/vscode-issue-lifecycle). Happy Coding!
ghost commented 4 years ago

Was this implemented?

mendeljacks commented 4 years ago

This would be very useful for dealing with large files where for example you wanted to add a comma to line

arthur-fuzaro commented 4 years ago

Since has reached 60 upvotes, it's gonna be implemented?

FranciscoCaldeira commented 4 years ago

Already did Up vote ... I need this feature to past 300k lines

Robert-Saiter commented 3 years ago

Having this configurable would be more useful than increasing it to 100000. I am just guessing but each machine may have a different limit to how much it can handle and I frequently handle text files with millions of lines. Whatever the maximum amount is that my machine can handle would be the best case for me.

nikbucher commented 3 years ago

https://github.com/microsoft/vscode/blob/master/src/vs/editor/common/controller/cursor.ts#L124

riversky0014 commented 3 years ago

Seems that it hasn't be implemented? I need this feature a lot, otherwise I have to deal large file with python, it is not so happy.

earslap commented 3 years ago

Been waiting for this for a looong time. Makes many data cleaning tasks an order of magnitude easier.

For a temporary fix / hack: find file workbench.desktop.main.js (thank you @nikbucker) minified file on your vscode installation and search for the string MAX_CURSOR_COUNT in there, change the set value (it is 1e4, make it 1e5 for 100000 for instance), save, restart vscode. Now on each new window, vscode will rightly complain about installation being corrupted but otherwise it will serve your needs until we can set this value through user preferences.

BenRacicot commented 3 years ago

Why would an IDE have a max cursor count that cannot be changed via settings or available memory or something? That's ah, what we need it for.

trollfred commented 3 years ago

Please make it happen!

HadesWing commented 3 years ago

when cursors more than 10000, why cannot select any one of cursor? why not select 10000 cursor first? or 10000 every time.

ghost commented 3 years ago

Please update soon, need to use reg exp on 200k lines

tomcastigl commented 3 years ago

please update this! It is a big handicap for me.

deltadelta commented 3 years ago

WTB this update!

commadelimited commented 3 years ago

I'm working on XML files with millions of lines, and 100,000 top level child elements. Being able to select individual nodes for reporting would be really helpful.

gkot-softwaredeveloper commented 3 years ago

I need to change at the same time 600 000 lines 📄. I hope that you'll take care of this 'feature' 👍 . Can't wait for this 🥇

duck-dev-go commented 3 years ago

Any news on this?

trollfred commented 3 years ago

I would suggest learning how to use sed. vscode is not the right tool for editing large files. even if it allows unlimited cursors you will probably run out of memory or performance will be extremely poor editing that many lines

flamurbeqiraj commented 3 years ago

Can't believe that this big project can't handle big files! It is just necessary!

DRSDavidSoft commented 3 years ago

@vscode Team, is there any technical reasons that this value is not configurable by the user, unlike how json.maxItemsComputed is for JSON items?

K0stov commented 3 years ago

As of the latest update, the MAX_CURSOR_COUNT workaround no longer seems to work.

oiver555 commented 3 years ago

Are there workarounds to this issue? Other then doing mass selections manually.

Jovi-droid commented 3 years ago

Any updates on this?

LesterCovax commented 2 years ago

@DRSDavidSoft My suggestion (a few years ago at this point:hurtrealbad:) was to add the following variable and default value: "editor.multiCursorMaxLines": 10000

https://github.com/microsoft/vscode/issues/81589#issuecomment-574710401

mostlyharmless2024 commented 2 years ago

bumping into this same constraint here, would love this to be configurable

itzBawantha commented 2 years ago

No rush , But waiting for this for 3 years now. Edit : 4 Now

cahyowhy commented 2 years ago

leaving dot here in case in the future will be implemented, don't know when thou

humanolaranja commented 2 years ago

2022 and still waiting for this feature

K0stov commented 2 years ago

2022 and still waiting for this feature

Yeeep.

sdenni commented 2 years ago

waiting.

noah-lnt commented 2 years ago

+1

AlexDiaconu commented 2 years ago

+1. When will this be implemented? Has been added to the backlog almost 2 years ago :-S.

marcoantoni0 commented 2 years ago

+1

antonio-schlappa-motioncx commented 2 years ago

+1

mpintob commented 2 years ago

+1

a1re1 commented 2 years ago

+10001 ;)

Jovi-droid commented 2 years ago

+1

guidofd commented 2 years ago

+1

ronytesler commented 2 years ago

Waiting

v1shva commented 2 years ago

Wow, not implemented in VS still? For anyone else having same issue, try Sublime, can edit 50k+ lines simultaneously.

lcbotha commented 2 years ago

+1