1

I want to get the line number or line content of the line where the cursor is pointing. How can I do this?

I tried this solution but it is deprecated for VS 2019 version. I need a solution for VS 2019 version. I am using .NET Framework 4.7.2.

Tanmay Bairagi
  • 564
  • 5
  • 25
  • 1
    Did you try this? https://stackoverflow.com/a/46067206/6803592 – Olaf Jan 20 '20 at 07:38
  • I don't want it to be anyway related to context menu. I just want is, if anyone clicks on any line or we are typing something on the editor, it should detect the line number and corresponding line. – Tanmay Bairagi Jan 29 '20 at 06:23

0 Answers0