This is an English translation of a Japanese blog. Some content may not be fully translated.
📝

"The number of cursors is limited to 10000" When Making Column Selections of More Than 10000 Lines in VSCode

Introduction

VSCode is very handy, isn’t it? I had been using Sublime Text 3 for a long time, but the “IMESupport” behavior on Windows 10 was causing various issues I couldn’t tolerate, so I switched to VSCode.

I use VSCode not just for drafting emails and occasionally writing code, but also for viewing CSV files and various logs. When formatting logs or CSV files, I sometimes need to make column selections of more than 10,000 rows, and in VSCode, the following error message appears:

image-20191121163717894

Cause

As shown in the code below, “MAX_CURSOR_COUNT” is hardcoded, so column selections of more than 10,000 rows are not possible.

[GitHub] Microsoft/vscode: Visual Studio Code

public static MAX_CURSOR_COUNT = 10000;

Workaround

Based on my research online, there is no workaround. Use a different editor instead.

Notes

I learned about this issue from an answer when I asked on teratail:

Visual Studio Code - “The number of cursors is limited to 10000” appears when making column selections in VSCode | teratail https://teratail.com/questions/161064

Suggest an edit on GitHub