Showing posts with label Sublime Text. Show all posts
Showing posts with label Sublime Text. Show all posts

Thursday, March 24, 2016

Support GB2312 and GBK in Sublime Text 3

It's annoying that Sublime doesn't support GB2312 and GBK by default. A solution is to install package ConvertToUTF8 using Package Control.

Very easy:

1. Make sure install Package Control follow by this instruction: https://packagecontrol.io/installation

2. Install package ConvertToUTF8 follow by instruction at here: https://github.com/seanliang/ConvertToUTF8

3. It's done!

Friday, January 29, 2016

Find & Replace with Regular Expression in Sublime Text 3

With Regular Expression, Find & Replace in Sublime Text 3 is much easier.

${1}, ${2}, etc. can be used to keep previous matched result when replacing.

For example, below snapshot finds all numbers followed by minus, and move the minus to left side.