uctakeoff / vscode-counter

VS Code extension: counts blank lines, comment lines, and physical lines of source code in many programming languages.
MIT License
151 stars 20 forks source link

New lines in string #85

Open wsuszycki opened 1 year ago

wsuszycki commented 1 year ago

The counter counts new lines in a string as a lines of code. E.g. some printed messages: echo "Some text - line 1 Some text - line 2 Some text - line 3 Some text - line 4 Some text - line 5" Result: Selected code: 5 Expected result: Selected code: 1 In my opinion, the string should be treated as the one line of code no matter how many new lines it has.