서브라임텍스트에서 젠코딩(emmet)과 sftp, 테마 등을 사용하기 위해 반드시 설치해야하는 것이 있다

바로 패키지 컨트롤(package control)!

여기선 emmet과 sftp설치만 다루도록 하겠음


sublime text2와 sublime text3이 다르니 주의하면서 시작하겠음



1.

서브라임텍스트에서 윈도우는 Ctrl + `   맥에서는 control + `를 누른다

참고로 `는 1 왼쪽에 있는 기호임

그럼 위의 사진처럼 하단에 cmd창같은게 생긴다




2.

import urllib2,os,hashlib; h = '2915d1851351e5ee549c20394736b442' + '8bc59f460fa1548d1514676163dafc88'; pf = 'Package Control.sublime-package'; ipp = sublime.installed_packages_path(); os.makedirs( ipp ) if not os.path.exists(ipp) else None; urllib2.install_opener( urllib2.build_opener( urllib2.ProxyHandler()) ); by = urllib2.urlopen( 'http://packagecontrol.io/' + pf.replace(' ', '%20')).read(); dh = hashlib.sha256(by).hexdigest(); open( os.path.join( ipp, pf), 'wb' ).write(by) if dh == h else None; print('Error validating download (got %s instead of %s), please try manual install' % (dh, h) if dh != h else 'Please restart Sublime Text to finish installation')

요 내용을 cmd창 입력란에 붙여준다





3.  성공했으면 서브라임을 다시 시작하라는 문구가 보인다 그럼 껐다 다시키면됨





4. 

윈도우는 ctrl + shift + p, 맥은 command + shift + p

또는 메뉴에서 Preference ->package control를 들어가면 위처럼 보인다

Package Control: Install Package 를 선택한다





5.

나는 다 설치해서 목록에 보이진 않지만

젠코딩을 원하면 emmet을

sftp를 원하면 sftp를 선택하여 설치하면 끝!



간단데스네



'Sublime Text' 카테고리의 다른 글

[sublime text] sftp 단축키  (0) 2016.03.10
Sublime text sftp 아마존 연결방법  (0) 2015.12.30
출처 : https://wbond.net/sublime_packages/sftp/usage#command-Sync_Both_Directions

Upload File
Win/Linux: ctrl+alt+u+f
OS X: ctrl+cmd+u+f
Upload the current file

Upload Changed Files
Win/Linux: ctrl+alt+u+c
OS X: ctrl+cmd+u+c
Upload all files changed or created since the last commit to your VCS (SVN, Git or Hg)

Upload Open Files
Win/Linux: ctrl+alt+u+n
OS X: ctrl+cmd+u+n
Upload all open files that are configured with an SFTP/FTP remote

Download File
Win/Linux: ctrl+alt+u+o
OS X: ctrl+cmd+u+o
Download the remote version of the selected file and overwrite the local copy

Upload Folder
Win/Linux: ctrl+alt+u+r
OS X: ctrl+cmd+u+r
Uploading the entire folder the current file is located in can be accomplished by pressing ctrl+alt+u+r on Windows and Linux, or ctrl+cmd+u+r on OS X.

Download Folder
Win/Linux: ctrl+alt+u+e
OS X: ctrl+cmd+u+e
Download the entire folder

Diff Remote File
Win/Linux: ctrl+alt+u+i
OS X: ctrl+cmd+u+i
Download the remote version of a file to a temp location and diff it with the local version

Rename Local and Remote Files
Context menu only
Rename the file on the server as well as the local copy

Delete Remote File
Context menu only
Delete the file off of the server

Delete Local and Remote Files
Context menu only
Delete the file off of the server in addition to the local copy

Sync Local -> Remote
Win/Linux: ctrl+alt+u+y
OS X: ctrl+cmd+u+y
Compare file modification times and confirm actions before uploading the selected file or folder. This will also delete files off of the remote server that do not exist locally.

Sync Remote -> Local
Win/Linux: ctrl+alt+u+d
OS X: ctrl+cmd+u+d
Compare file modification times and confirm actions before downloading the selected file or folder. This will also delete files off of the local machine that do not exist remotely.

Sync Both Directions
Win/Linux: ctrl+alt+u+b
OS X: ctrl+cmd+u+b
Compare file modification times and confirm actions before uploading/downloading the selected file or folder. This will never delete files, and will always perform the action that causes the newest file to be present in both locations.

Monitor File
Win/Linux: ctrl+alt+u+m
OS X: ctrl+cmd+u+m
Watch the file for modifications (from Sublime or other applications). When the file modification time changes, the file will be uploaded. This was designed to be used with programs such as LiveReload and CSS compliers. The file must remain open in Sublime to be monitored. Once it is closed, monitoring stops.

Browse Remote
Win/Linux: ctrl+alt+u+w
OS X: ctrl+cmd+u+w
Open the server quick panel browser at the remote folder corresponding to the selected file or folder


Server Workflow

Setup Server
Win/Linux: ctrl+alt+r+s
OS X: ctrl+cmd+r+s
Setup a new server.

Browse Server
Win/Linux: ctrl+alt+r+b
OS X: ctrl+cmd+r+b
List the servers, with an option to setup a new one.

Last Server
Win/Linux: ctrl+alt+r+n
OS X: ctrl+cmd+r+n
Show the current directory listing for the last used server.

Edit Server
Win/Linux: ctrl+alt+r+e
OS X: ctrl+cmd+r+e
List the servers for the purpose of editing.

Delete Server
Win/Linux: ctrl+alt+r+d
OS X: ctrl+cmd+r+d
List the servers for the purpose of deletion.


Both Workflows

Show SFTP Panel
Win/Linux: ctrl+alt+u+s
OS X: ctrl+cmd+u+s
Show the SFTP activity panel

Cancel
Win/Linux: ctrl+alt+u+x
OS X: ctrl+cmd+u+x
Stop the current SFTP/FTP server activity (connection, upload or download)


'Sublime Text' 카테고리의 다른 글

Sublime Text package control(emmet, sftp)  (0) 2016.03.10
Sublime text sftp 아마존 연결방법  (0) 2015.12.30

불과 한달전에 ppk연결을 해봤는데도 불구하고 내가 빠가인건가 또 헤맸다

그래서 이번엔 블로그에 정리하고 두고두고 보려 한다.





sublimetext에 sidebar(View -> side bar -> show side bar)를 열고

요 사이드바에 sftp 연결할 폴더를 끌어다가 놓은 후


위처럼 오른쪽 클릭 후 SFTP/FTP -> Map to Remote를 클릭한다.



그럼 위와 같은 코드가 촤르르륵 나오는데

저기 하이라이팅 되어있는 부분만 바꾸면 된다

cafe24와 같은 데선 비밀번호도 같이 입력해야 했었는데 아마존 sftp는 비밀번호 없이 호스팅주소랑 아이디만 있으면 된다.


host에는 ip주소 또는 호스팅 주소

user에는 아이디

remote_path에는 연결하고나면 시작할 폴더

ssh_key_file은 ppk파일 링크를 연결해주면 된다.


아마존의경우 /home/ec2-user/폴더 아래에 생성한 폴더가 촤르륵 있어서 remote_path에는 저런식으로 작성해주었다.

cafe24도 /home 아래에 있었던걸로 기억하니 아마 /home/?? 이런식으로 작성해야될 수 있음(아직 시도안해봄)

'Sublime Text' 카테고리의 다른 글

Sublime Text package control(emmet, sftp)  (0) 2016.03.10
[sublime text] sftp 단축키  (0) 2016.03.10

+ Recent posts