Chuyển đến nội dung chính

Các phím tắt nhanh khi dùng SFTP trong sublime text


- Bài viết giúp các bạn lập trình thảo tác trên sublime text chỉ cần thao tác lưu lại sftp sẽ tự động upload code lên host không cần dung filezilla upload.
Remote Workflow
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)

Nhận xét

Bài đăng phổ biến từ blog này

Khắc phục sự cố mail outlook tự động gửi nhiều mail cùng nội dung.

Khi các bạn nhân viên văn phòng sử dụng mail outlook chắc chắn cũng sẽ có trường hợp gửi một mail mà người nhận sẽ nhận được trên 2 hay nhiều mail có nội dung tương tự. Sau đây Tình sẽ hướng dẫn mọi người khắc phục sự cố trên: Bước 1: Khởi động mail outlook của mình lên.   Bước 2: Tool--> Rules and Alert Trong đây có danh sách các mail bạn đã tạo Rules. Đến đây các bạn chọn vào mail mà đã gửi nhiều mail cùng nội dung. Click phải và chọn delete nó hoặc click vào button delete phía trên. Sau đó lưu lại và thoát ra, test thử một mail kiểm tra kết quả. Chúc các bạn thành công !

Tích hợp Google Calendar trên Web PHP với XPath (Nguồn tham khảo)

Nguồn cung cấp tin của Google Calendar API dữ liệu Google cung cấp một số các nguồn cung cấp tin Atom có chứa các tài liệu và thông tin với nhiều dịch vụ Web do Google cung cấp. Google Calendar cũng không là ngoại lệ, cung cấp một số nguồn cung cấp tin đang chứa đựng phần lớn dữ liệu của Google Calendar. Có các nguồn cung cấp tin công khai và có xác thực HTTP. Để lấy ra và tương tác với nguồn cung cấp tin có xác thực, máy khách HTTP cần phải cung cấp thông tin xác thực cùng với yêu cầu GET của HTTP. Các nguồn cung cấp tin có xác thực cũng có khả năng cập nhật tài khoản Google Calendar bằng yêu cầu POST của HTTP. Các máy khách HTTP đang sử dụng các nguồn cung cấp tin có xác thực có thể thêm và loại bỏ các sự kiện, đăng ký và huỷ đăng ký khỏi các lịch, và tạo và xóa các lịch khỏi tài khoản Google.

Phím tắt thường dùng trong sublime text 2, 3

Ctrl+K+B: ẩn/hiện side bar Ctrl+/: comment Ctrl+Shift+/: comment dạng block Ctrl+K+U: chuyển text sang dạng uppercase Ctrl+K+L: chuyển text sang dạng lowercase Ctrl+L: select 1 dòng