peterafh / VSCE-Total-Lines-Info

VS Code Extension: Display total lines info and selected lines count in status bar.
MIT License
6 stars 2 forks source link

Show number of selected lines only #7

Open lonix1 opened 1 month ago

lonix1 commented 1 month ago

Nice extension!

I want to show the number of selected lines, not the total (as vscode already shows that). How do I do that?

I tried:

 "linesinfostatusbar.totalDisplayFormat": "",
 "linesinfostatusbar.selectedDisplayFormat": "%d lines",

But it shows this:

Lins. 1234 lines
peterafh commented 1 month ago

Hi @lonix1,

I didn't think about that option, as the main purpose of the extension was to show the current document total number of lines. I can implement a change to manage this case.

Anyway, you can use a little hack while the new version is available, just use this configuration:

 "linesinfostatusbar.totalDisplayFormat": "%c",

By the way, how can I configure VS Code to show the total number of lines natively? I can't find that configuration. Maybe you are using another extension for that... I can only see the current line number in the status bar, i. e., the line where the cursor is positioned.

Regards,