How to shuffle lines randomly in Sublime Text


Ramdomly Shuffle lines in Sublime Text Editor
Ramdomly Shuffle lines in Sublime Text Editor

If you have a text file and you want to shuffle the lines in the file randomly, you can do that using Sublime Text Editor in the following way,

  1. Open the file in Sublime Text tab,
  2. Goto Menu: Edit -> Permute Lines -> Shuffle,
  3. You should see the lines in the file are suffeled!
Example: Initial file text
Line 1
Line 2
Line 3
Line 4
Line 5
After using the Shuffle Option
Line 4
Line 2
Line 3
Line 1
Line 5


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.