VScode provided some ways to fold regions:
- https://code.visualstudio.com/docs/editor/codebasics#_folding
- How do I collapse sections of code in Visual Studio Code for Windows?
For a log file having 330560 lines of text, the Fold selection
is not a good option, since it is not easy to select thousand of lines. I am able to use things like #region/#endregion
and convert the log file to C# or python source code file by using ctrl+shift+p -> Change Language Mode
but I am wondering if any better/less hacking way to fold lines in a text file. e.g using regexp? or add some special marker to let the editor knows a block text is a foldable region?
Spoiler Alert: Due to https://github.com/microsoft/vscode/issues/90843 makes the VSCode a bad choice for log viewing. It is no good for using VSCode to check logs.