microsoft / vscode

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

Horizontal Character Numbers #216891

Open RokeJulianLockhart opened 2 weeks ago

RokeJulianLockhart commented 2 weeks ago

As aforerequested in https://github.com/microsoft/vscode/issues/176174#issue-1610221457, I would like a horizontal line number bar. https://github.com/orgs/community/discussions/129450#discussion-6849971 explains some reasons that this is desirable, although not all are applicable due to its focus on permalink URIs:

An example is https://github.com/PrismLauncher/PrismLauncher/issues/1599#issue-1878841159, where I am forced to cite a text fragment directive appended to the end of a permalink to a line number - https://github.com/PrismLauncher/PrismLauncher/blob/ab68d9198d07674952f99a63bb0901f8a410ce5c/.github/ISSUE_TEMPLATE/bug_report.yml?plain=1#L36:~:text=Help%20%2D%3E%20About%20Prism%20Launcher%20%2D%3E%20About%20Qt - in order to reference a specific *section of a line*. The 10 upvotes at https://github.com/microsoft/vscode/issues/176174#issue-1610221457, and the existence of https://github.com/Zettlr/Zettlr/issues/163#issue-435417639, should demonstrate that significant interest exists.

This would be useful in VS Code for a similar reason - frequently, I want to reference a section of my code. When the lines are long, this can be challenging, so I usually exit VS Code and enter the GitHub or GitLab repository's GUI for the code file in the relevant commit, where I then create a permalink URI to the line. Were this feature - the horizontal line number ruler - implemented in VS Code, I would be able to locate the exact line and character numbers, then go to GitHub and find easily the exact section again, where I could create the permalink much quicker.

I've refiled this because I would not have upvoted that referenced issue due to it combining this feature with another which I have no interest in. I file this to suggest separately, and record more accurately support for, this specific feature.

Examples

You can see an example of something similar in LibreOffice:

Screenshot_20240623_131122

However, VS Code already supports similar features, like the ability to visit a specific line and column (as https://github.com/Microsoft/vscode/issues/10052#issue-169009020 describes) and VS Code's ability to display the current line and column in its status bar, as https://stackoverflow.com/revisions/66061866/1 demonstrates.

VSCodeTriageBot commented 2 weeks 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!