Removing Snippet Line Numbers

Kevin Feasel



Jens Vestergaard grabs some code and is left with line numbers he wants to remove:

Only too often I find myself searching the web for pieces of code, that I need for some odd solution. And almost every time, I come across a web page, where the code sample is displayed with line numbers. It’s always annoying to have to sit and delete those manually. No longer I say! Yes, you heard me right. Actually Visual Studio has a neat trick to help you get this done in a jiff.

This is useful for a lot more than just removing line numbers.

Related Posts

Using Telegraf To Display SQL Server Metrics In Grafana

Tracy Boggiano has a writeup showing how to use Telegraf + InfluxDB + Grafana to view SQL Server metrics: We have in the middle an open source time series database called InfluxDBis designed for collecting data that is timestamped such as performance metrics. Into that, we feed data from an open source project called Telegraf […]

Read More

Actual Execution Plan Enhancements

Pedro Lopes points out some additional data available in the properties section when you generate an actual execution plan: Looking at the actual execution plan is one of the most used performance troubleshooting techniques. Having information on elapsed CPU time and overall execution time, together with session wait information in an actual execution plan allows […]

Read More


  • Konstantin on 2016-05-15

    And what a trick?

    • SQLWayne on 2016-05-17

      Personally I’d use TextEdit, flip it to Column mode, select the column and delete it. I love TE for quite a number of purposes.

      • Kevin Feasel on 2016-05-18

        Thanks for the tip. I like using ALT-select (or Alt+Shift+select) because it works in SSMS, Visual Studio, and Notepad++.

Comments are closed


May 2016
« Apr Jun »