Sublime editor: setting

2021. 10. 2. 17:17Env/Tools

    목차
반응형

sublime

 

1) add python code (install of package control)

    @

    https://packagecontrol.io/installation#st3

     == 

    ctrl + `

    and then, paste the following lines

    sublime text editor 3

 

import urllib.request,os,hashlib; h = '6f4c264a24d933ce70df5dedcf1dcaee' + 'ebe013ee18cced0ef93d5f746d80ef60'; pf = 'Package Control.sublime-package'; ipp = sublime.installed_packages_path(); urllib.request.install_opener( urllib.request.build_opener( urllib.request.ProxyHandler()) ); by = urllib.request.urlopen( 'http://packagecontrol.io/' + pf.replace(' ', '%20')).read(); dh = hashlib.sha256(by).hexdigest(); print('Error validating download (got %s instead of %s), please try manual install' % (dh, h)) if dh != h else open(os.path.join( ipp, pf), 'wb' ).write(by)

 

 

 

2) install Package

shift + ctrl + p --> install Package

"function name display" package

 

shift + ctrl + p --> install Package

HighlightWords

Preference -> Package Settings -> Highlightwords -> Keybindings - default 

change key combination as what you want

 

shift + ctrl + p --> install Package

CImproved

 

  • Hangul

shift + ctrl + p --> install Package

Codecs33

 

shift + ctrl + p --> install Package

ConvertToUTF8

 

shift + ctrl + p --> install Package

SublimeAStyleFormatter

Preference - package settings - SublimeAStyleFormatter - usr

"style": "java",

"indent-switches": true,

 

ctrl+alt+f : format current file

ctrl+k, ctrl+f: format current selection

 

shift + ctrl + p --> install Package

HexViewer

실행

file을 editor에서 open 한 후,

tools -> packages -> HexViewer -> Toggle Hex View 실행

key mapping

 > preference -> Package Settings -> HexViewer -> Key Bindings - User 실행하여 key mapping

    [

        { "keys": ["shift+ctrl+h"], "command": "hex_viewer" }

    ]


 

3) font

Preference -> settings

 

{

    "font_face": "Courier New",

    "font_size": 10,

    "tab_size": 4,

    "translate_tabs_to_spaces": true,

    "word_wrap": true,

 

    "ignored_packages":

    [

        "Vintage"

    ],

 

    "auto_match_enabled": false,

}

 

4)

Preference -> Key bindings

User

[

    { "keys": ["alt+1"], "command": "highlight_words" },

    { "keys": ["alt+2"], "command": "unhighlight_words" },

    { "keys": ["alt+="], "command": "highlight_words" },

    { "keys": ["alt+-"], "command": "unhighlight_words" },

]

 

반응형

'Env > Tools' 카테고리의 다른 글

tmux 사용법  (0) 2021.11.30
iTunes에 앱 별 파일 넣기  (0) 2021.11.30
VirtualBox Ubuntu 메뉴가 안보일 때 (no menu)  (0) 2021.10.09
Sublime에서 javaScript 코드 실행  (0) 2021.10.02
Trace 32 - 기초과정 중 내용  (0) 2021.09.27