Brackets shortcuts

Brackets Shortcuts

In this chapter, we are going to show the most used and important Brackets shortcuts.

Important Tips:
Do not try to learn all the shortcuts at once.

Try using the important ones first and use them frequently so that you do not need to memorize them. Use them often as a habit while coding.

Related to Files & Folders

ShortcutsDescriptionExtra Comments
Ctrl+NCreate a New File under Working Files 
Ctrl+OTo open a File from your computerUse this option to open a file from some other project
Ctrl+Shift+OQuick OpenGood option to quickly open a file from current project
Ctrl+Alt+OTo Open a Folder(Not File)Remember this as it is very useful
Alt+OTo Open Recent Files(Not Folder) 
Ctrl+WCloses the current file 
Ctrl+Shift+WCloses all the files 
F2To rename a file 

Editing Shortcuts

ShortcutsDescriptionExtra comments
Ctrl+DDuplicate a Line or SelectionDuplicates a selection if text is selected else it duplicates the line
Ctrl + /To toggle Line commentUse this for Single Line
Ctrl + Shift+ /To toggle Block commentUse this for Multiple lines
Ctrl + EnterTo add a new line after the current line.The cursor can be anywhere in the line
Ctrl + Shift + EnterTo add a new line before the current line.The cursor can be anywhere in the line
Ctrl + Shift + DTo Delete the current line 
Ctrl+CTo copy entire line or a selectionIf you do not select a string to copy, it will copy the entire line
Ctrl+XTo Cut entire line or a selectionIf you do not select a string to Cut, it will cut the entire line

Find & Replace

ShortcutsDescription
Ctrl + FTo find a regular expression pattern or a text in the current file
Ctrl + Shift + FTo find a regular expression pattern or a text in entire project(in multiple files)
F3To find the Next text or pattern
Shift + F3To find the Previous text or pattern
Ctrl + HTo find a regular expression pattern or a text in the current file and replace it with another text

Important Tips:
The “Batch” button of the “Replace” button will give option to select the files where you want to replace the word with.

Related to Work-space & View

ShortcutsDescriptionExtra comments
Ctrl++To Increase the size of the FontUse Zoom Wheel Extension as an alternative
Ctrl–To decrease the size of the FontZoom Wheel Extension as a better alternative
Ctrl+0To Reset the Font size 
Ctrl+Alt+PShows Live PreviewIt is better to use the “Live Preview” icon
Ctrl+Alt+HHides/Shows the working & Project Files SidebarBetter to show the Hidebar by default
Ctrl+Shift+2No Distractions – Hides the sidebar from left and right sidesUse this option if you like to work on Full view
Ctrl+Shift+CLive Preview HighlightWorks only when “Live Preview is enabled”. Keep it checked

Navigate

ShortcutsDescriptionExtra comments
Ctrl + Shift + OTo Quickly open files from the list 
Ctrl + GTo quickly go to a particular Line 
Ctrl + TOpens the “Quick Find Defintion” in that File 
Shift + Ctrl + TOpens the “Quick Find Defintion” in that entire project 
Ctrl + JJump to DefinitionVery good feature for PHP in Brackets
Ctrl + Page DownNavigate to the next document(file) in the List 
Ctrl + Page UpNavigate to the previous document(file) in the List 
Ctrl + EOpens the Quick Edit featureVery good feature of Brackets
Ctrl + KNavigate to Quick Docs to learn about that element/tag/property etc.Very good feature of Brackets. This works for both HTML as well as CSS

Move Cursors

Shortcuts Description Extra comments
Ctrl+ → To move to the next word
Ctrl+ ← To move to the previous word
Alt + → To move to the end of current line End Key is better option
Alt+ ← To move to the Start of current line Home key is better option
Ctrl+ Home To move the cursor at the Start of file
Ctrl+ End To move the cursor at the End of file

Selection

Shortcuts Description Extra comments
Ctrl+ L To select the current and the next lines
Ctrl+ B To select the current line The cursor can be at the start, in-between or end of the word
Shift + Alt + → To select the next words in the line from the cursor position
Shift+ Alt + ← To select the previous words in the line from the cursor position
Shift+Ctrl + Home To select from the cursor position to the start of the file
Shift+Ctrl + End To select from the cursor position to the end of the file

Indent & Move

ShortcutsDescriptionExtra comments
Ctrl+ Shift + ↑Move the current line or selection to previous line 
Ctrl+ Shift + ↓Move the current line or selection to next line 
Ctrl + ]To indent the code to Right sideSimilar to pressing a Tab Key
Ctrl + [To indent the code to Left sideSimilar to pressing a ‘Shift+Tab’ Key
TabTo move the code to right with an amount of space by Tab 
Shift + TabTo move the code to left with an amount of space by Tab 

Quick Edit

ShortcutsDescription
Ctrl + EOpens the Quick Edit option
Ctrl + NTo create a new rule (inside the Quick Edit option only)
Alt + ↑To navigate to the previous rule for the same tag
Alt + ↓To navigate to the next rule for the same tag
EscTo close the Quick Edit Window/Panel

Important Tips:

  • You can open multiple quick edit window in the file
  • To close the current Quick Edit window, place your cursor inside this window and press ‘ESC
  • To close all the Quick Edit windows, place your cursor on the main document(except inside any Quick Edit windows) which has multiple Quick edit sessions and press ‘ESC

Cursors to add match

ShortcutsDescriptionExtra comments
Ctrl + BSelect the next matchYou can select some selection and change them at once
Ctrl + Shift + BSkip and select the next match 
Ctrl + UUndo the changes of the last selectiion 
Ctrl + Shift + URedo the changes of the last selectiion 
Ctrl + ClickKeep adding those texts in your selection 
Alt + Click + DragSelect a column or multiple columns across multiple linesThis is an important feature which is present in most of the code editors
Alt + Shift + ↑Expands the cursor from the current position to the previous lines 
Alt + Shift + ↓Expands the cursor from the current position to the Next lines 

Important Tips:
Selecting cursors across multiple lines gives you an option to edit changes in multiple lines simultaneously

Debug related

ShortcutDescriptionExtra comments
F12This shows the Developer ToolsPowerful – Opens Chrome dev tools in Brackets itself
F5Refresh – Reload with extensionsIn case of an issue, try refreshing your brackets using this shortcut
Shift + F5Reoad without extensionsTo find out issues related to extensions, use this

Help

ShortcutDescription
F1To open Brackets support link

Bonus Tips:

  • We are not showing the basic shortcuts like Ctrl + A, Ctrl + V, etc because these are common across any editors
  • This tutorial contains the list of shortcuts which are sufficient and we do not recommend to try learning all the Brackets shortcuts
  • Learn the shortcuts as per your usage. Slowly, you will be able to master them

If you are looking for a comprehensive list, visit the Github link.

Tutorials for all brains!