Tổng hợp phím tắt trong sublime text 2

Trong bài Giới thiệu về các editor cho nhà phát triển web , mình có giới thiệu cho các bạn lập trình sử dụng sublime text editor phục vụ cho công việc phát triển web. Hôm nay mình tổng hợp các phím tắt trong sublime text, giúp các bạn sẽ thao tác nhanh hơn khi gõ code,…

a) Basic

F11                         Full Screen
shift + F11                    Distraction Free Mode
ctrl + shift + p            Command Palette
ctrl + `                    Show Console
ctrl + k + b                Show/Hide Sidebar
ctrl + /                    Comment
ctrl + shift + /            Block Comment
ctrl + k + u                Uppercase
ctrl + k + l                Lowercase

b) Selections

ctrl + d                    Select Word
ctrl + d                    Use multiple times to select next instance of the selected word
ctrl + click                Create multiple cursors for multi-editing
ctrl + shift + space        Expand selection to scope. Repeating keeps expanding.
ctrl + shift + m            Expand to brackets
ctrl + shift + j            Expand to indentation

c) Go To

ctrl + p                    Open file based on name
ctrl + g                    Go to line number
ctrl + r                    Go to symbol
ctrl + p THEN @                Open file based on name and search for symbol
ctrl + m                    Go to matching bracket

d) Lines

ctrl + l                    Select line
ctrl + shift + k            Delete line
ctrl + ]                    Indent
ctrl + [                    Unindent
ctrl + enter                Insert line after
ctrl + shift + enter        Insert line before
ctrl + shift + ↑            Swap line up
ctrl + shift + ↓            Swap line down
ctrl + shift + d            Duplicate line
ctrl + j                    Join Line

e)  Code Folding

ctrl + shift + [            Fold
ctrl + shift + ]            Unfold
ctrl + k + j                Unfold All

f)  Search / Find / Replace

ctrl + f                    Find
F3                            Find next
shift + F3                    Find previous
ctrl + shift + f            Search all files in a folder
ctrl + h                    Replace
ctrl + f THEN alt + enter    Find a certain term then select them all for multi-editing

g) Tabs and Window Panes

ctrl + shift + n            New Window
ctrl + n                    New Tab
alt + #    Select a Tab (ie alt + 3)
ctrl + w                    Close Tab
ctrl + shift + #            Move tab to a Pane (ie ctrl + shift + 2)
ctrl + #                    Focus on a Pane (ie ctrl + 2)
alt + shift + 1                One Column
alt + shift + 2                Two Columns
alt + shift + 3                Three Columns
alt + shift + 4                Four Columns
alt + shift + 8                Two Rows
alt + shift + 9                Three Rows
alt + shift + 5                Two x Two Grid

h)  Bookmarks

ctrl + F2                    Create Bookmark
F2                            Next Bookmark
shift + F2                    Previous Bookmark
ctrl + shift + F2            Clear Bookmarks

Tôi Là Hoàng Hiếu

Mình là Hiếu.
Người sáng lập ra blog Kungfu PHP chia sẻ mọi thứ về tiền điện tử, mmo, lập trình,…
Một câu nói mà mình rất thích đó là “Cuộc đời chỉ có một, vì thế hãy làm những gì khiến bạn hạnh phúc và ở bên người khiến bạn luôn mỉm cười”.
Hy vọng nơi đây là góc cafe nhỏ để chúng ta có thể trao đổi, cùng nhau phát triển.

►Nếu bạn thấy bài viết bạn đang đọc hữu ích, hãy mời mình một ly cafe nhé : https://kungfuphp.com/donate