For MS Visual Studio 2015 type "Text" in Quick Launch (Ctrl+Q) of top right corner. 1) quicklaunch
2) In the list select Text Editor->All Languages->General select_allLanguages
3) Now check on "Line Numbers" and click OK to get the line numbers.
Finally we get the line number in text editor.