Opens the given file with the encoding, prompting the user for a file name if none is givenĪ space separated list of extensions to search through One of Undefined, Windows-1252, UTF-16 BE, UTF-16 LE, UTF-8 The view in the current tab is first closed, and replaced with the newly opened vie Opens the file(s) given as parameters, or prompts the user for a file name if none are given. Opens the file(s) given as parameters, or prompts the user for a file name if none are given Runs the commands in the given file, not showing any status information Runs the commands in the given file, showing status information Saves the last recorded macro to disk, prompting the user for a file name Starts / Stops recording the current macro Selects the nth bookmark from the top of the buffer Open the incremental find panel, and set the find direction to reverseĪdds / Removes the current selection to the set of bookmarks Open the incremental find panel, and set the find direction to forward Places the current selection (or word if the selection is empty) in the find buffer, and finds all occurrences Places the current selection (or word if the selection is empty) in the find buffer, and finds the previous occurrence Places the current selection (or word if the selection is empty) in the find buffer, and finds the next occurrence Moves the selected line(s) in the given directionįinds the next occurrence of the text in the find bufferįinds the previous occurrence of the text in the find buffer Rearranged the contents of each selection region with respect to each other, using the given method Rearranges all lines intersecting a selection region using the given method The permutation used, one of reverse, shuffle or unique Sorts contents of each selection region with respect to each other Sorts all lines intersecting a selection region If present, duplicated strings will be eliminated If present, the comparison will regard upper case characters as coming before lower case ones If no width is given, it's inferred from the current ruler, or defaults to 70 characters if there is no ruler Reformat the current paragraph, ensuring that no line is wider than the column width. Inverts the case of each selected character If "block" is supplied as a parameter, block comments will be preferred Show the syntax name of the text under the cursor in the status barĬomplete the current word based on other words in the bufferĪdds or removes comments around each selection region. Scroll the view by the given number of lines Unindents the lines currently intersecting the selection Indents the lines currently intersecting the selection Joins the following line to the current line, replacing all in between whitespace with a single space Redoes the last action if the redo stack isn't empty, otherwise repeats the last action Replaces the current selection with the contents of the clipboard This has no special behavior when translateTabsToSpaces is onĮrase the contents of each non-empty region, and the character to the right of every empty regionĭeletes a word to the left or right of each cursorĬopies the current selection to the clipboardĬuts the current selection to the clipboard If spaces are being used for indentation, this will erase space characters until the next tab stopĮrase the contents of each non-empty region, and the character to the left of every empty region. Insert the characters given in the first parameter, and apply automatic indentationĮrase the contents of each non-empty region, and the character to the left of every empty region. Insert the characters given in the first parameter Split each selection region into subsets, one for each line Replace each non-empty selection region with two empty regions, one for each end Remove all selection regions bar the first Selects the non-selected portion of the buffer, and unselects the currently selected portion Moves each cursor directly to the indicated positionĮxpands each selection region to the enclosing paragraph One of bol, hardbol, eol, hardeol, bof, eof Moves each cursor, by the given mode, amount number of times. If this has the literal value "extend", the selection will be extended in the direction of movement The number of mode elements to move the cursor by One of characters, words, wordends, wordboundaries, lines, wholelines or pages InsertCharacters "Hello World!\n" Selection move For example, the command to insert the string Hello World!, followed by a newline, is: If you are editing one of those files, this reference will come in handy.Įach command may take one or more parameters, which may be enclosed in quotes. Key bindings, menu items, toolbar buttons and macros all work through the command system. Commands are the basic method for interacting with Sublime Text.
0 Comments
Leave a Reply. |