Skip to content
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

Increase the number of cursors from 10000 #81589

Closed
rs6454 opened this issue Sep 28, 2019 · 72 comments · Fixed by #149703
Closed

Increase the number of cursors from 10000 #81589

rs6454 opened this issue Sep 28, 2019 · 72 comments · Fixed by #149703
Assignees
Labels
editor-multicursor Editor multiple cursor issues feature-request Request for new features or functionality insiders-released Patch has been released in VS Code Insiders verification-needed Verification of issue is requested verified Verification succeeded
Milestone

Comments

@rs6454
Copy link

rs6454 commented Sep 28, 2019

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
Copy link

vscodebot bot commented Sep 28, 2019

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

@rs6454
Copy link
Author

rs6454 commented Sep 28, 2019

(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

@alexdima alexdima added editor-multicursor Editor multiple cursor issues feature-request Request for new features or functionality labels Oct 2, 2019
@alexdima alexdima added this to the Backlog milestone Oct 2, 2019
@LesterCovax
Copy link

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
Copy link

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
Copy link

@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.

@alexdima alexdima modified the milestones: Backlog, Backlog Candidates Jan 31, 2020
@alexdima alexdima removed their assignment Jan 31, 2020
@vscodebot
Copy link

vscodebot bot commented Jan 31, 2020

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!

@LesterCovax
Copy link

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
Copy link
Member

alexdima commented Feb 5, 2020

@LesterCovax I think the opening post should be upvoted:

image

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

@vscodebot
Copy link

vscodebot bot commented Feb 14, 2020

🙂 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.

Happy Coding!

@ghost
Copy link

ghost commented Mar 27, 2020

Was this implemented?

@mendeljacks
Copy link

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

@arthur-fuzaro
Copy link

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

@FranciscoCaldeira
Copy link

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

@Robert-Saiter
Copy link

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.

@riversky0014
Copy link

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
Copy link

earslap commented Jan 19, 2021

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
Copy link

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
Copy link

Please make it happen!

@rodrigojeansantos
Copy link

+1

@mioversolna
Copy link

mioversolna commented Mar 6, 2022

Thanks for @earslap and @nikbucher,

For the Windows and Mac solution, (this is not an official solution)...

STEP 1

Open the folder path "C:\Users\USERDIRECTORY\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench"

STEP 2

Open "workbench.desktop.main.js" with the VSCode 😂

STEP 3

Open finder in the VSCode and write MAX_CURSOR_COUNT=1e4 than it will find one option after thatchange it to what you number what you want but 1e4 is 10000, so if you want 90000 you need to enter 9e4 you can use this website to calculate it
Calculator
than wirte what number do you want to the website after that click calculate than get the value of "scientific e notation", copy it.

STEP 4

Pate the value what you copied to the MAX_CURSOR_COUNT=, it will be like MAX_CURSOR_COUNT=9e4

STEP 5

Than open the second file in the same folder named "workbench.desktop.main.nls.js" and apply the same steps for this file change the value of MAX_CURSOR_COUNT=1e4 to the same number what you want.

STEP 6

And restart the VSCode thats all :)

Now you can select more than 10000 columns

Regards,
KK

@andig
Copy link

andig commented Apr 6, 2022

Thanks for sharing. Same on Mac.

I'd still love to see this fixed for good. No sense not using my favourite editor for big files due to an artificial internal limitation!

Update just happily used it on a 70k lines file:

  • select all
  • split by line
  • remove leading 40 characters

...all reasonably quick. What took really long is removing the selection by jumping to end of file.

@RaphaelSilv
Copy link

+1

1 similar comment
@AbdouMechraoui
Copy link

+1

@andig
Copy link

andig commented Apr 13, 2022

Can I suggest that everyone interested in this puts a thumbs up on the original issue? Imho the VSCode team looks at this when prioritizing. +1 comments are not counted.

@jtsierra
Copy link

This could be very handy for working with json files. Thumbs up

@andig
Copy link

andig commented Apr 14, 2022

Linked it to the April plan. Thanks to everyone for voting on the issue!

@bolti95
Copy link

bolti95 commented Jun 10, 2022

+1

4 similar comments
@Danipulok
Copy link

+1

@porteron
Copy link

porteron commented Jul 1, 2022

+1

@rafaelmm899
Copy link

+1

@DanielLopezOSF
Copy link

+1

@RokeJulianLockhart
Copy link

Why not merely not limit this?

@fabiosoares-cw
Copy link

It worked here. 🚀 thanks @mioversolna

@sdhjl2000
Copy link

+1

@alexdima alexdima modified the milestones: Backlog, November 2022 Nov 19, 2022
@alexdima alexdima self-assigned this Nov 19, 2022
@VSCodeTriageBot VSCodeTriageBot added unreleased Patch has not yet been released in VS Code Insiders insiders-released Patch has been released in VS Code Insiders and removed unreleased Patch has not yet been released in VS Code Insiders labels Nov 21, 2022
@alexdima
Copy link
Member

To verify, configure "editor.multiCursorLimit": 50000 and create a file with 50k qwerty words in it. Then, select one word and press cmd+shift+L. The status bar should show 50k selections.

@alexdima alexdima added the verification-needed Verification of issue is requested label Nov 28, 2022
@isidorn isidorn added the verified Verification succeeded label Nov 29, 2022
@github-actions github-actions bot locked and limited conversation to collaborators Jan 5, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
editor-multicursor Editor multiple cursor issues feature-request Request for new features or functionality insiders-released Patch has been released in VS Code Insiders verification-needed Verification of issue is requested verified Verification succeeded
Projects
None yet
Development

Successfully merging a pull request may close this issue.