Don't port your T-SQL code from SSMS to Notepad++ for line numbers.
Setup line numbers within the Query window.
In SSMS, go to Tools, Options.
Then choose and expand the Text Editor option and choose Transact SQL
There you will check "Line Numbers.
You will then have line numbers in the query window.
If anyone knows about adding column numbers let us know.
For tweaking CRM SSRS reports based on T-SQL, this really helps.