How to Set Permanent ruler in Sublime Text


If you have made use of Rulers in Sublime Text Editor, you must have seen that as you set the Ruler in one of the files or tab it is not activated for all tabs/files.

If you are an advanced user and want to have a ruler visible in each of your new tabs or files, then you can add the user settings.

  1. Open Sublime Text Editor,
  2. Go to Sublime Text -> Preferences -> Settings (on macOS, may vary for Windows users)
  3. Now in Preferences.sublime-settings file add the below with in braces: "rulers": [100]
  4. Close the tabs and you should see now each files and tabs have rulers enabled.
Permanently Set Ruler in Sublime Text Editor
Permanently Set Ruler in Sublime Text Editor

⛏️ If you do not want to have the ruler or want to change its size, follow the same steps to open Preferences.sublime-setting file and edit or remove the rulers parameter.



Have Questions? Post them here!



Recent Posts:




Code2care is an initiative to publish and share varied knowledge in programming and technical areas gathered during day-to-day learnings and development activities.

Students and Software Developers can leverage this portal to find solutions to their various queries without re-inventing the wheel by referring to our easy to understand posts. Technical posts might include Learnings, Video Tutorials, Code Snippets, How Tos, Blogs, Articles, etc.