Removing Snippet Line Numbers

Kevin Feasel

2016-05-13

Tools

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

The Best Of The Underground Toolbox

Adrian Buckman shares some of his favorite creations: sp_AGreconfigure This is a great goto proc for an alternative to the Always on availability group GUI for changing Failover mode, Synchronous mode or even Readable options. When you manage multiple servers with multiple Availability groups this stored procedure can save you alot of time, sometimes I […]

Read More

Using FlashText Instead Of RegEx

Kevin Feasel

2018-06-21

Tools

Leona Zhang compares the FlashText Python library to using regular expressions: If you have done any text/data analysis, you might already be familiar with Regular Expressions (RegEx). RegEx evolved as a necessary tool for text editing. If you are still using RegEx to deal with text processing, then you may have some problems to deal […]

Read More

3 Comments

  • 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

Categories

May 2016
MTWTFSS
« Apr Jun »
 1
2345678
9101112131415
16171819202122
23242526272829
3031