Getting rid of text selection at the bottom of Sublime Text docs

Getting rid of annoying text selection at the bottom of Sublime Text documents

If you use Sublime for prolonged periods of time I am sure you will have occasionally noticed that if you try and select or click on some code near the bottom of the screen Sublime will sometimes select all the code from the last line to where you have clicked.

This is incredibly annoying, luckily there is a quick solution for it - VIM (just kidding).

If you open your User Preferences file and add in the following;

"scroll_past_end": true

This will stop the selection from happening - this also means your file will keep scrolling down when you get to the bottom, in practice this doesn't bother me at all and the fact text doesn't get selected incorrectly now more than makes up for this.


Recent posts View all

Ruby

How to ignore Bullet in RSpec tests

Using Bullet during a test can pick up mistakes but also has false negatives; here is an easy way to ignore them

Ruby

How we used Nokogiri to fix a sizing issue in YouTube's oEmbed

At some point, one of our calls to YouTube's oEmbed endpoint was returning videos way too small; we fixed in in our Rails application by using Nokogiri