Search
Duplicate

Sublime Text 3

Created
5/31/2021, 7:36:00 AM
Tags
Empty

Sublime Text 3

Text Editor์˜ ํ•œ ์ข…๋ฅ˜๋กœ, ์–ธ์–ด์— ์ƒ๊ด€ ์—†์ด ๊ฐ€๋ณ๊ฒŒ ์ฝ”๋”ฉ์ด ๊ฐ€๋Šฅํ•˜๋‹ค. ๋‹ค์–‘ํ•œ ์ปค์Šคํ…€ ๊ธฐ๋Šฅ์ด ๊ตฌํ˜„๋œ ํŒจํ‚ค์ง€๋ฅผ ์ œ๊ณตํ•ด์ฃผ๊ณ , ์„ค์น˜ ๋ฐ ๊ด€๋ฆฌ๊ฐ€ ๋งค์šฐ ์šฉ์ดํ•˜์ง€๋งŒ, ๊ธฐ๋Šฅ์˜ ํ•œ๊ณ„๊ฐ€ ๋ช…ํ™•ํ•˜๋‹ค.
๊ทธ๋ ‡์ง€๋งŒ Sublime Text3๋Š” ์—ฌ๋Ÿฌ ์ƒํ™ฉ์—์„œ ๊ฐ€๋ณ๊ณ  ์œ ์ตํ•˜๊ฒŒ ๋งŽ์ด ์“ฐ์ธ๋‹ค. ๊ฐ€๋ น ์ •๊ทœ์‹์„ ํ…Œ์ŠคํŠธํ•ด๋ณธ๋‹ค๊ฑฐ๋‚˜, ์†์œผ๋กœ ๋ฌธ์„œ๋ฅผ ํŒŒ์‹ฑํ•ด์•ผํ•œ๋‹ค๋“ ์ง€ ํ•  ๋•Œ ํŽธ๋ฆฌํ•˜๋‹ค.

Sublime Text 3๋ฅผ IDE์ฒ˜๋Ÿผ ์‚ฌ์šฉํ•ด๋ณด๊ธฐ

submlimet text 3๋Š” ์›๋ž˜ ๋‹จ์ˆœ text editor์ด์ง€๋งŒ, anaconda ๊ฐ™์€ package๋“ค์„ ์„ค์น˜ํ•ด์„œ, ๋””๋ฒ„๊น…์„ ํ•  ์ˆ˜ ์žˆ๊ฒŒํ•ด์„œ IDE์™€ ์œ ์‚ฌํ•œ ์‚ฌ์šฉ์„ฑ์„ ์‹œ๋„ํ•ด๋ณผ ์ˆ˜๋Š” ์žˆ๋‹ค. ๊ทธ๋Ÿฌ๋‚˜ ๊ฒฐ๊ตญ ์•„๋ฌด๋ฆฌ ์• ๋ฅผ ์จ๋„ IDE์˜ ํŒŒ์›Œํ’€ํ•œ ๊ธฐ๋Šฅ์„ ๋‹ค ๋”ฐ๋ผ๊ฐ€๋Š” ๊ฒƒ์€ ๋ถˆ๊ฐ€๋Šฅํ•˜๋‹ค.

Sublime Text 3 Hot key

โ€ข
ctrl + `: ์„œ๋ธŒ๋ผ์ž„ ํ…์ŠคํŠธ ์ฝ˜์†”์ฐฝ ์ผœ๊ธฐ(ํŠน์ • ๋ช…๋ น์–ด๋ฅผ ์‹คํ–‰์‹œํ‚ฌ ์ˆ˜๋„ ์žˆ๊ณ , ์–ด๋–ค ์ž‘์—…์„ ํ•˜๋Š”์ง€ ๊ทธ ๊ณผ์ •์„ ๋ชจ๋‹ˆํ„ฐ๋งํ•  ์ˆ˜๋„ ์žˆ์Œ
โ€ข
ctrl + shift + p: general command ์ฐฝ
โ€ข
ctrl + p : go to anywhere
โ€ข
ctrl+alt+d : documnet ๋ณด๊ธฐ
โ€ข
ctrl + d : ๊ฐ™์€ ๋ณ€์ˆ˜ ์„ ํƒํ•˜๊ธฐ
โ€ข
ctrl+alt+f : usage ์ฐพ๊ธฐ
โ€ข
ctrl+shift+space: ์„ ํƒ์˜์—ญ ์ขŒ์šฐ๋กœ ๋Š˜๋ฆฌ๊ธฐ
โ€ข
ctrl + p : go to anywhere
โ€ข
ctrl+alt+d : document ๋ณด๊ธฐ
โ€ข
ctrl+`์„ ๋ˆŒ๋Ÿฌ์„œ console์ฐฝ์„ ํ‚ค๊ณ , sublime.log_commands(True)์„ ์ž…๋ ฅํ•˜์—ฌ ๋กœ๊น…์˜ต์…˜์„ ํ‚จ๋‹ค์Œ ํŠน์ • ํ–‰๋™์„ ์ทจํ•ด์„œ command_name์„ ์•Œ์•„๋‚ด๊ณ , ์ด๋ฅผ key binding์— ๋“ฑ๋กํ•œ๋‹ค.

Sublime Text3 ์—์„œ Github Markdown Preview ์‚ฌ์šฉํ•˜๊ธฐ

โ€ข
๊ทธ๋Œ€๋กœ ๋”ฐ๋ผํ•˜๋ฉด๋จ. ์ฃผ์˜์‚ฌํ•ญ์€ย enable_autoreload=true๋กœ ํ–ˆ์„ ๋•Œ, ".md" ํŒŒ์ผ๋งŒ markdown์œผ๋กœ ์ธ์‹๋˜์–ด, ์ €์žฅ์‹œ ์ž๋™ ๋นŒ๋“œ๊ฐ€ ๋œ๋‹ค๋Š” ์ ์ž„.
๊ทธ๋ž˜์„œ ๋‹ค์Œ๊ณผ ๊ฐ™์ด ์ˆ˜์ •ํ•  ๊ฒƒย "markdown_filetypes": [".txt", ".md", ".markdown", ".mdown"],
๊ทธ๋ฆฌ๊ณ  ์ถ”๊ฐ€๋กœ LiveReload๊ฐ€ ํ•ญ์ƒ enable๋˜์–ด์žˆ๊ฒŒ ํ•˜๋ ค๋ฉด ๋‹ค์Œ์„ setting์— ์ถ”๊ฐ€.ย { "enabled_plugins": [ "SimpleReloadPlugin", "SimpleRefresh" ] }

WSL(Window Subsystem Linux)์™€ Sublime Text 3์—ฐ๊ฒฐํ•˜๊ธฐ

์•„๋ž˜์˜ ์—ฌ๋Ÿฌ ๋งํฌ๋“ค์„ ์ฐธ์กฐํ•˜์—ฌ ์กฐ์‚ฌํ•ด๋ณด์•˜์œผ๋‚˜, ์•„์ง๊นŒ์ง€ ๋งค๋„๋Ÿฝ๊ณ  ์‰ฝ๊ฒŒ ์—ฐ๊ฒฐํ•  ์ˆ˜ ์žˆ๋Š” ๋ฐฉ๋ฒ•์€ ์—†๋Š” ๊ฒƒ์œผ๋กœ ํ™•์ธ๋œ๋‹ค. ๊ฒŒ๋‹ค๊ฐ€ pytorch gpu๊นŒ์ง€ ๊ณ ๋ คํ•˜๋ฉด, anaconda๋ฅผ ์„ค์น˜ํ•˜๋Š” ๊ฒƒ์ด ๋” ๋‚˜์€ ๋ฐฉ๋ฒ•์œผ๋กœ ๋ณด์ธ๋‹ค.

Sublime Text 3 Portable

Portable ๋ฒ„์ „์„ ์„ค์น˜ํ•˜๋ฉด, dropbox๋“ฑ์„ ์ด์šฉํ•ด์„œ ๊ฐœ๋ฐœํ™˜๊ฒฝ์„ ์‰ฝ๊ฒŒ ์œ ์ง€ํ•  ์ˆ˜ ์žˆ๋‹ค. ์šฉ๋Ÿ‰๋„ ์ž‘์•„์„œ ์ข‹์Œ. ํ˜„์žฌ SFTP 30๋‹ฌ๋Ÿฌ์— ๊ตฌ๋งคํ•ด์„œ ์‚ฌ์šฉํ•˜๋Š” ์ค‘.
โ€ข
SFTP๋กœย ์ƒˆ๋กœ์šด ํ”„๋กœ์ ํŠธ sublime text์— ๋™๊ธฐํ™”์‹œํ‚ค๊ธฐ:ย http://recoveryman.tistory.com/1661) FIle - Open Folder๋กœ ์ƒˆ๋กœ์šด ํ”„๋กœ์ ํŠธ๋ฅผ ๋„ฃ์„ ํด๋”๋ฅผ ์„ ํƒํ•ด์„œ ์—ด๊ธฐ.(์—†์œผ๋ฉด ์ƒˆ๋กœ ๋งŒ๋“ค๊ธฐ)2) ํด๋”์ด๋ฆ„ ์šฐํด๋ฆญ - SFTP/FTPย - Remote Mapping์„ ํด๋ฆญํ•˜์—ฌ, sftp-config.jsonํŒŒ์ผ์„ย ๋‹ค์Œ๊ณผ ๊ฐ™์ด ์ˆ˜์ •
{ // The tab key will cycle through the settings when first created // Visit http://wbond.net/sublime_packages/sftp/settings for help // sftp, ftp or ftps "type": "sftp", "save_before_upload": true, "upload_on_save": true, "sync_down_on_open": false, "sync_skip_deletes": false, "sync_same_age": true, "confirm_downloads": false, "confirm_sync": false, "confirm_overwrite_newer": false, // your server "host": "147.46.***.***", "user": "root", "password": "****", //"port": "22", // project Path "remote_path": "/home/*****", // Custom options for ignoring directories "ignore_regexes": [ "\\.sublime-(project|workspace)", "sftp-config(-alt\\d?)?\\.json", "sftp-settings\\.json", "/venv/", "\\.svn/", "\\.hg/", "\\.git/", "\\.pyc", "\\.bzr", "_darcs", "CVS", "\\.DS_Store", "Thumbs\\.db", "desktop\\.ini" , "/checkpoints/" , "/state_sample/" ], //"file_permissions": "664", //"dir_permissions": "775", //"extra_list_connections": 0, "connect_timeout": 30, //"keepalive": 120, //"ftp_passive_mode": true, //"ftp_obey_passive_host": false, //"ssh_key_file": "~/.ssh/id_rsa", //"sftp_flags": ["-F", "/path/to/ssh_config"], //"preserve_modification_times": false, //"remote_time_offset_in_hours": 0, //"remote_encoding": "utf-8", //"remote_locale": "C", //"allow_config_upload": false, }
JSON
3) ํด๋”์ด๋ฆ„ ์šฐํด๋ฆญ - SFTP/FTP - Sync Remote -> Local
โ€ข
sftp์—์„œ ์›ํ•˜์ง€ ์•Š๋Š” ๋™๊ธฐํ™” ํด๋”ย ์ง€์ •ํ•˜๊ธฐย : ignore_regexes๋ฅผ ์‚ฌ์šฉํ•˜๋ฉด ๋œ๋‹ค.
๋‹ค์Œ์„ ์ถ”๊ฐ€ํ•ด์ฃผ๊ธฐ๋งŒ ํ•˜๋ฉด ๋จ.
"/ํด๋”_์ด๋ฆ„/"ย 
# ๋™๊ธฐํ™”ํ•˜์ง€ ์•Š์„ ํ™•์žฅ์ž ์ถ”๊ฐ€"\\.out"
# Tip1. sublime text3์—์„œ ํŒŒ์ผ์„ ์„ ํƒํ•˜๋ฉด, ์ž๋™์œผ๋กœ sftp๋ฅผ ํ†ตํ•ด ์„œ๋ฒ„์—์„œ ์ตœ์‹  ๋ฒ„์ „์˜ ํŒŒ์ผ๋กœ ๋™๊ธฐํ™” ์‹œ์ผœ์คŒ.2. ctrl + shift + ์œ„์•„๋ž˜ : ํ•œ์ค„์˜ ์ฝ”๋“œ์˜ ์œ„์น˜๋ฅผ ์œ„์•„๋ž˜๋กœ ์˜ฎ๊ธธ ์ˆ˜ ์žˆ์Œ3. ctrl + alt + ์œ„์•„๋ž˜ : ์„ธ๋กœ ๋ฐฉํ–ฅ์œผ๋กœ ๋ธ”๋ก์„ ์ง€์ •ํ•˜๋Š” selection์„ ํ•  ์ˆ˜ ์žˆ์Œ. esc๋ˆ„๋ฅด๋ฉด ํ•ด์ œย ย  ย --> ๋˜ํ•œ ๋งˆ์šฐ์Šค ํœ ํ‚ค๋ฅผ ๋ˆŒ๋ฅด์„œ๋„ ์„ธ๋กœ ๋ธ”๋ก ์ง€์ •์ด ๊ฐ€๋Šฅํ•จ
4. ์—ฌ๋Ÿฌ๊ฐœ์˜ folder openํ•˜๊ธฐ: ํด๋”๋ฅผ ๋“œ๋ž˜๊ทธํ•ด์„œ ์™ผ์ชฝ sidebar์— ์˜ฌ๋ ค๋†“๊ฑฐ๋‚˜, ๋˜๋Š”ย Project > Add Folder to Project ํด๋ฆญ
5. ์ฐพ๊ธฐ์—์„œ ๊ฒ€์ƒ‰ํ•œ ๋‹จ์–ด ํ•œ๋ฒˆ์— ๋ธ”๋ก์ง€์ •ํ•˜๊ธฐ: alt+enter
6. ์ขŒ์šฐ ์Šคํฌ๋กค: shift + ํœ ์Šคํฌ๋กค
7. ์—ด๋ฆฐ ํŒŒ์ผ๊ฐ„ ์ด๋™: ์šฐํด๋ฆญ + ํœ ์Šคํฌ๋กค
8. ์ „์ฒด ํŒŒ์ผ์—์„œ ๊ฒ€์ƒ‰/๋ฐ”๊พธ๊ธฐ: ctrl+shift+Fย  ย  ์—ฌ๊ธฐ์„œ ๊ฒ€์ƒ‰/๋ฐ”๊พธ๊ธฐ ํ•  ๋Œ€์ƒ ํด๋”๋ฅผ ์ถ”๊ฐ€ํ•  ์ˆ˜๋„ ์žˆ๊ณ , ์ œ์™ธ ์‹œํ‚ฌ ์ˆ˜๋„ ์žˆ์Œ
# Indentation์„ space๋กœ ๊ณ ์ •ํ•˜๊ธฐ
TOP