Skip to main content

Commands

Import :

const Commands = brackets.getModule("command/Commands")

FILE_NEW_UNTITLED

Creates a new untitled document

Kind: global variable

FILE_NEW

Creates a new file in the current project

Kind: global variable

FILE_NEW_PROJECT

Creates a new project

Kind: global variable

FILE_NEW_FOLDER

Creates a new folder in the current project

Kind: global variable

FILE_DUPLICATE

Duplicates the selected file or folder

Kind: global variable

FILE_DUPLICATE_FILE

Duplicates the selected file

Kind: global variable

FILE_DOWNLOAD

Downloads the selected file

Kind: global variable

FILE_DOWNLOAD_PROJECT

Downloads the entire project

Kind: global variable

FILE_CUT

Cuts the selected file or folder to clipboard

Kind: global variable

FILE_COPY

Copies the selected file or folder to clipboard

Kind: global variable

FILE_COPY_PATH

Copies the path of selected file or folder

Kind: global variable

FILE_PASTE

Pastes file or folder from clipboard

Kind: global variable

FILE_OPEN

Opens a file

Kind: global variable

FILE_OPEN_FOLDER

Opens a folder as a project

Kind: global variable

FILE_SAVE

Saves the current file

Kind: global variable

FILE_SAVE_ALL

Saves all open files

Kind: global variable

FILE_SAVE_AS

Saves current file with a new name

Kind: global variable

FILE_CLOSE

Closes the current file

Kind: global variable

FILE_CLOSE_ALL

Closes all open files

Kind: global variable

FILE_CLOSE_LIST

Closes files from list

Kind: global variable

FILE_REOPEN_CLOSED

Reopens last closed file

Kind: global variable

FILE_OPEN_DROPPED_FILES

Opens files that were dropped

Kind: global variable

FILE_LIVE_FILE_PREVIEW

Toggles live file preview

Kind: global variable

FILE_LIVE_FILE_PREVIEW_SETTINGS

Opens live preview settings

Kind: global variable

TOGGLE_LIVE_PREVIEW_MB_MODE

Toggles live preview multi-browser mode

Kind: global variable

CMD_RELOAD_LIVE_PREVIEW

Reloads live preview

Kind: global variable

FILE_LIVE_HIGHLIGHT

Toggles live highlight

Kind: global variable

FILE_PROJECT_SETTINGS

Opens project settings

Kind: global variable

FILE_RENAME

Renames selected file or folder

Kind: global variable

FILE_DELETE

Deletes selected file or folder

Kind: global variable

FILE_EXTENSION_MANAGER

Opens extension manager

Kind: global variable

FILE_REFRESH

Refreshes the file tree

Kind: global variable

FILE_SHOW_FOLDERS_FIRST

Toggles show folders first in file tree

Kind: global variable

FILE_OPEN_PREFERENCES

Opens preferences

Kind: global variable

FILE_OPEN_KEYMAP

Opens keymap settings

Kind: global variable

FILE_NEW_WINDOW

Opens new window

Kind: global variable

FILE_CLOSE_WINDOW

Closes current window

Kind: global variable

FILE_QUIT

Quits the application

Kind: global variable

EDIT_UNDO

Undoes the last edit operation

Kind: global variable

EDIT_REDO

Redoes the last undone edit operation

Kind: global variable

EDIT_CUT

Cuts the selected text to clipboard

Kind: global variable

EDIT_COPY

Copies the selected text to clipboard

Kind: global variable

EDIT_PASTE

Pastes text from clipboard

Kind: global variable

EDIT_SELECT_ALL

Selects all text in the current document

Kind: global variable

EDIT_SELECT_LINE

Selects the current line

Kind: global variable

EDIT_SPLIT_SEL_INTO_LINES

Splits selection into individual lines

Kind: global variable

EDIT_ADD_CUR_TO_NEXT_LINE

Adds cursor to the next line

Kind: global variable

EDIT_ADD_CUR_TO_PREV_LINE

Adds cursor to the previous line

Kind: global variable

EDIT_INDENT

Indents the selected text

Kind: global variable

EDIT_UNINDENT

Unindents the selected text

Kind: global variable

EDIT_DUPLICATE

Duplicates the selected text

Kind: global variable

EDIT_DELETE_LINES

Deletes the current line(s)

Kind: global variable

EDIT_LINE_COMMENT

Toggles line comment for current selection

Kind: global variable

EDIT_BLOCK_COMMENT

Toggles block comment for current selection

Kind: global variable

EDIT_LINE_UP

Moves current line up

Kind: global variable

EDIT_LINE_DOWN

Moves current line down

Kind: global variable

EDIT_OPEN_LINE_ABOVE

Opens a new line above current line

Kind: global variable

EDIT_OPEN_LINE_BELOW

Opens a new line below current line

Kind: global variable

TOGGLE_CLOSE_BRACKETS

Toggles auto close brackets

Kind: global variable

SHOW_CODE_HINTS

Shows code hints

Kind: global variable

EDIT_BEAUTIFY_CODE

Beautifies the current code

Kind: global variable

EDIT_BEAUTIFY_CODE_ON_SAVE

Toggles code beautification on save

Kind: global variable

CMD_FIND

Opens find dialog

Kind: global variable

CMD_FIND_IN_FILES

Opens find in files dialog

Kind: global variable

CMD_FIND_IN_SUBTREE

Opens find in subtree dialog

Kind: global variable

CMD_FIND_NEXT

Finds next match

Kind: global variable

CMD_FIND_PREVIOUS

Finds previous match

Kind: global variable

CMD_FIND_ALL_AND_SELECT

Finds all matches and selects them

Kind: global variable

CMD_ADD_NEXT_MATCH

Adds next match to selection

Kind: global variable

CMD_SKIP_CURRENT_MATCH

Skips current match

Kind: global variable

CMD_REPLACE

Replaces current match

Kind: global variable

CMD_REPLACE_IN_FILES

Opens replace in files dialog

Kind: global variable

CMD_REPLACE_IN_SUBTREE

Opens replace in subtree dialog

Kind: global variable

CMD_FIND_ALL_REFERENCES

Opens find references panel

Kind: global variable

CMD_THEMES_OPEN_SETTINGS

Opens theme settings

Kind: global variable

VIEW_HIDE_SIDEBAR

Toggles sidebar visibility

Kind: global variable

VIEW_ZOOM_IN

Zooms in the editor view

Kind: global variable

VIEW_ZOOM_OUT

Zooms out the editor view

Kind: global variable

VIEW_ZOOM_SUBMENU

Submenu for zoom options

Kind: global variable

VIEW_INCREASE_FONT_SIZE

Increases editor font size

Kind: global variable

VIEW_DECREASE_FONT_SIZE

Decreases editor font size

Kind: global variable

VIEW_RESTORE_FONT_SIZE

Restores editor font size to default

Kind: global variable

VIEW_SCROLL_LINE_UP

Scrolls editor view up by one line

Kind: global variable

VIEW_SCROLL_LINE_DOWN

Scrolls editor view down by one line

Kind: global variable

VIEW_TOGGLE_INSPECTION

Toggles code inspection

Kind: global variable

VIEW_TOGGLE_PROBLEMS

Toggles problems panel visibility

Kind: global variable

TOGGLE_LINE_NUMBERS

Toggles line numbers visibility

Kind: global variable

TOGGLE_ACTIVE_LINE

Toggles active line highlight

Kind: global variable

TOGGLE_WORD_WRAP

Toggles word wrap

Kind: global variable

TOGGLE_RULERS

Toggles rulers visibility

Kind: global variable

TOGGLE_INDENT_GUIDES

Toggles indent guides visibility

Kind: global variable

TOGGLE_SEARCH_AUTOHIDE

Toggles search auto-hide behavior

Kind: global variable

CMD_OPEN

Opens a file

Kind: global variable

CMD_ADD_TO_WORKINGSET_AND_OPEN

Adds file to working set and opens it

Kind: global variable

Goes to next document

Kind: global variable

Goes to previous document

Kind: global variable

Goes to next document in list order

Kind: global variable

Goes to previous document in list order

Kind: global variable

Shows current file in file tree

Kind: global variable

Shows current file in OS file explorer

Kind: global variable

Opens quick open dialog

Kind: global variable

Jumps to definition of symbol at cursor

Kind: global variable

Opens go to definition search

Kind: global variable

Opens go to definition in project search

Kind: global variable

Opens go to line dialog

Kind: global variable

Goes to first problem in current file

Kind: global variable

Goes to next problem in current file

Kind: global variable

Goes to previous problem in current file

Kind: global variable

TOGGLE_QUICK_EDIT

Toggles quick edit widget

Kind: global variable

TOGGLE_QUICK_DOCS

Toggles quick docs widget

Kind: global variable

QUICK_EDIT_NEXT_MATCH

Goes to next match in quick edit

Kind: global variable

QUICK_EDIT_PREV_MATCH

Goes to previous match in quick edit

Kind: global variable

CSS_QUICK_EDIT_NEW_RULE

Creates new CSS rule in quick edit

Kind: global variable

HELP_HOW_TO_USE_BRACKETS

Opens how to use Brackets guide

Kind: global variable

HELP_DOCS

Opens documentation

Kind: global variable

HELP_SUPPORT

Opens support resources

Kind: global variable

HELP_SUGGEST

Opens feature suggestion page

Kind: global variable

HELP_RELEASE_NOTES

Opens release notes

Kind: global variable

HELP_GET_INVOLVED

Opens contributor guidelines

Kind: global variable

HELP_SHOW_EXT_FOLDER

Shows extensions folder in OS

Kind: global variable

HELP_HOMEPAGE

Opens project homepage

Kind: global variable

HELP_YOUTUBE

Opens YouTube channel

Kind: global variable

HELP_TWITTER

Opens Twitter page

Kind: global variable

HELP_TOGGLE_SHORTCUTS_PANEL

Toggles keyboard shortcuts panel

Kind: global variable

HELP_CHECK_UPDATES

Checks for updates

Kind: global variable

HELP_AUTO_UPDATE

Toggles auto update

Kind: global variable

CMD_WORKINGSET_SORT_BY_ADDED

Sorts working set by order files were added

Kind: global variable

CMD_WORKINGSET_SORT_BY_NAME

Sorts working set by file name

Kind: global variable

CMD_WORKINGSET_SORT_BY_TYPE

Sorts working set by file type

Kind: global variable

CMD_WORKING_SORT_TOGGLE_AUTO

Toggles automatic working set sorting

Kind: global variable

CMD_KEYBOARD_NAV_UI_OVERLAY

Opens keyboard navigation UI overlay

Kind: global variable

CMD_SPLITVIEW_NONE

Removes split view

Kind: global variable

CMD_SPLITVIEW_VERTICAL

Splits view vertically

Kind: global variable

CMD_SPLITVIEW_HORIZONTAL

Splits view horizontally

Kind: global variable

CMD_SWITCH_PANE_FOCUS

Switches focus between split panes

Kind: global variable

HELP_ABOUT

Shows about dialog

Kind: global variable

APP_RELOAD

Reloads the application

Kind: global variable

APP_RELOAD_WITHOUT_EXTS

Reloads the application without extensions

Kind: global variable

APP_ABORT_QUIT

Aborts application quit

Kind: global variable

APP_BEFORE_MENUPOPUP

Handler before menu popup

Kind: global variable

HIDE_SIDEBAR

Hides the sidebar

Kind: global variable

SHOW_SIDEBAR

Shows the sidebar

Kind: global variable