ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

Python​2​Unicode​Fixer

No description provided

Details

Installs

  • Total 4K
  • Win 3K
  • Mac 667
  • Linux 736
May 19 May 18 May 17 May 16 May 15 May 14 May 13 May 12 May 11 May 10 May 9 May 8 May 7 May 6 May 5 May 4 May 3 May 2 May 1 Apr 30 Apr 29 Apr 28 Apr 27 Apr 26 Apr 25 Apr 24 Apr 23 Apr 22 Apr 21 Apr 20 Apr 19 Apr 18 Apr 17 Apr 16 Apr 15 Apr 14 Apr 13 Apr 12 Apr 11 Apr 10 Apr 9 Apr 8 Apr 7 Apr 6 Apr 5
Windows 0 0 1 1 2 1 1 0 1 0 0 0 1 0 0 0 0 2 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0
Mac 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0
Linux 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

Readme

Source
raw.​githubusercontent.​com

Python2UnicodeFixer

파이썬2에서의 유니코드가 선언만 잘하면 괜찮은데, 파이썬이 낯선 분들에게는 그게 어렵더라구요. 그래서 그 선언을 체크해주는 서브라임 텍스트 3 플러그인을 만들었습니다.

  • .py 소스코드에 utf8 인코딩 선언이 없으면, 파일 저장 시에 자동추가
  • .py 소스코드에 unicode_literals 선언이 없으면, 파일 저장 시에 자동추가

Package Control 을 통한 설치

Package Control: Install Package 에서 Python2UnicodeFixer 를 검색해서 설치

수동 설치

  1. 에디터의 Preferences -> Brower Packages … 를 선택하시면, Packages 디렉토리가 뜹니다.
  2. Packages 에 Python2UnicodeFixer 디렉토리를 만들고 안에 Python2UnicodeFixer.py 파일을 넣어줍니다.

이제, .py 확장자의 파일을 저장할 때마다 이 플러그인이 동작합니다.

TODO