The Tools Menu

ToolsRead Only Mode

Set the current document to Read Only mode. This prevents any text addition and any changes in the document formatting.

ToolsMode

Choose the filetype scheme you prefer for the active document. This overwrites the global filetype mode set in SettingsConfigure Editor... in the Filetypes tab for your current document only.

ToolsHighlighting

Choose the Highlighting scheme you prefer for the active document. This overwrites the global highlighting mode set in SettingsConfigure Editor... for your current document only.

ToolsIndentation

Choose the style of indentation you want for your active document. This overwrites the global indentation mode set in SettingsConfigure Editor... for your current document only.

ToolsEncoding

You can overwrite the default encoding set in SettingsConfigure Editor... in the Open/Save page to set a different encoding for your current document. The encoding you set here will be only valid for your current document.

ToolsEnd of Line

Choose your preferred end of line mode for your active document. This overwrites the global end of line mode set in SettingsConfigure Editor... for your current document only.

ToolsAdd Byte Mark Order (BOM)

Checking this action you can explicitly add a byte order mark for unicode encoded documents. The byte order mark (BOM) is a Unicode character used to signal the endianness (byte order) of a text file or stream, for more information see Byte Order Mark.

ToolsScripts

This submenu contains a list of all scripted actions. The list can easily be modified by writing your own scripts. This way, KatePart can be extended with user-defined tools.

ToolsScriptsNavigation
ToolsScriptsNavigationMove cursor to previous matching indent (Alt+Shift+Up)

Moves the cursor to the first line above the current line that is indented at the same level as the current line.

ToolsScriptsNavigationMove cursor to next matching indent (Alt+Shift+Down)

Moves the cursor to the first line below the current line that is indented at the same level as the current line.

ToolsScriptsEditing
ToolsScriptsEditingSort Selected Text

Sorts the selected text or whole document in ascending order.

ToolsScriptsEditingMove Lines Down (Ctrl+Shift+Down)

Move selected lines down.

ToolsScriptsEditingMove Lines Up (Ctrl+Shift+Up)

Move selected lines up.

ToolsScriptsEditingDuplicate Selected Lines Down (Ctrl+Alt+Down)

Duplicates the selected lines down.

ToolsScriptsEditingDuplicate Selected Lines Up (Ctrl+Alt+Up)

Duplicates the selected lines up.

ToolsScriptsEditingURI-encode selected text

Encodes the selected text so that it can be used as part of a query string in a URL, replacing the selection with the encoded text.

ToolsScriptsEditingURI-decode selected text

If part of the query string of a URL is selected, this will decode it and replace the selection with the original raw text.

ToolsScriptsEmmet
ToolsScriptsEmmetExpand abbreviation

Converts the selected text to a pair of opening and closing HTML or XML tags. For example, if div is selected, this item will replace that with <div></div>.

ToolsScriptsEmmetWrap with tag

Wraps the selected text with the tag provided on the command line.

ToolsScriptsEmmetMove cursor to matching tag

If the cursor is inside an opening HTML/XML tag, this item will move it to the closing tag. If the cursor is inside the closing tag, it will instead move it to the opening tag.

ToolsScriptsEmmetSelect HTML/XML tag contents inwards

When the cursor is inside a pair of HTML/XML tags, this option will change the selection to include the contents of those HTML/XML tags, without selecting the tags themselves.

ToolsScriptsEmmetSelect HTML/XML tag contents outwards

When the cursor is inside a pair of HTML/XML tags, this item will change the selection to include the contents of those HTML/XML tags, including the tags themselves.

ToolsScriptsEmmetToggle Comment

If the selected portion is not a comment, this item will enclose that portion in HTML/XML comments (e.g. <!-- selected text -->). If the selected portion is a comment, the comment tags will be removed instead.

ToolsScriptsEmmetDelete tag under cursor

If the cursor is presently inside a HTML/XML tag, this item will delete the entire tag.

ToolsScriptsEmmetDecrement number by 1

This item will subtract one from the currently selected text, if it is a number. For example, if 5 is selected, it will become 4.

ToolsScriptsEmmetDecrement number by 10

This item will subtract 10 from the currently selected text, if it is a number. For example, if 15 is selected, it will become 5.

ToolsScriptsEmmetDecrement number by 0.1

This item will subtract 0.1 from the currently selected text, if it is a number. For example, if 4.5 is selected, it will become 4.4.

ToolsScriptsEmmetIncrement number by 1

This item will add one to the currently selected text, if it is a number. For example, if 5 is selected, it will become 6.

ToolsScriptsEmmetIncrement number by 10

This item will add 10 to the currently selected text, if it is a number. For example, if 5 is selected, it will become 15.

ToolsScriptsEmmetIncrement number by 0.1

This item will add 0.1 to the currently selected text, if it is a number. For example, if 4.5 is selected, it will become 4.6.

ToolsInvoke Code Completion (Ctrl+Space)

Manually invoke command completion, usually by using a shortcut bound to this action.

ToolsWord Completion

Reuse Word Below (Ctrl+9) and Reuse Word Above (Ctrl+8) complete the currently typed text by searching for similar words backward or forward from the current cursor position. Shell Completion pops up a completion box with matching entries.

ToolsSpellingAutomatic Spell Checking (Ctrl+Shift+O)

When Automatic Spell Checking is enabled, wrongly spelled text is underlined in the document on-the-fly.

ToolsSpellingSpelling...

This initiates the spellchecking program - a program designed to help the user catch and correct any spelling errors. Clicking on this entry will start the checker and bring up the speller dialog box through which the user can control the process. There are four settings lined up vertically in the center of the dialog with their corresponding labels just to the left. Starting at the top they are:

Unknown word:

Here, the spellchecker indicates the word currently under consideration. This happens when the checker encounters a word not in its dictionary - a file containing a list of correctly spelled words against which it compares each word in the editor.

Replace with:

If the checker has any similar words in its dictionary the first one will be listed here. The user can accept the suggestion, type in his or her own correction, or choose a different suggestion from the next box.

Language:

If you have installed multiple dictionaries, here you can select which dictionary/language should be used.

On the right side of the dialog box are 6 buttons that allow the user to control the spellcheck process. They are:

Add to Dictionary

Pressing this button adds the Unknown word to the checker's dictionary. This means that in the future the checker will always consider this word to be correctly spelled.

Suggest

The checker may list here a number of possible replacements for the word under consideration. Clicking on any one of the suggestions will cause that word to be entered in the Replace with box, above.

Replace

This button has the checker replace the word under consideration in the document with the word in the Replace with box.

Replace All

This button causes the checker to replace not only the current Unknown word: but to automatically make the same substitution for any other occurrences of this Unknown word in the document.

Ignore

Activating this button will have the checker move on without making any changes.

Ignore All

This button tells the checker to do nothing with the current Unknown word: and to pass over any other instances of the same word.

Note

This only applies to the current spellcheck run. If the checker is run again later it will stop on this same word.

Three more buttons are located horizontally along the bottom of the spellcheck dialog. They are:

Help

This invokes the KDE help system with the help page for this dialog.

Finished

This button ends the spellcheck process, and returns to the document.

Cancel

This button cancels the spellcheck process, all modifications are reverted, and you will return to your document.

ToolsSpellingSpelling (from cursor)...

This initiates the spellchecking program but it starts where your cursor is instead of at the beginning of the document.

ToolsSpellingSpellcheck Selection...

Spellchecks the current selection.

ToolsSpellingChange Dictionary

Displays a drop down box with all available dictionaries for spellchecking at the bottom of the editor window. This allows easy switching of the spellcheck dictionary e.g. for automatic spellcheck of text in different languages.

ToolsClean Indentation

This cleans the indentation for the current selection or for the line the cursor is currently in. Cleaning the indentation ensures that all your selected text follows the indentation mode you choose.

ToolsAlign

Causes a realign of the current line or selected lines using the indentation mode and indentation settings in the document.

ToolsComment (Ctrl+D)

This adds one space to the beginning of the line where the text cursor is located or to the beginning of any selected lines.

ToolsUncomment (Ctrl+Shift+D)

This removes one space (if any exist) from the beginning of the line where the text cursor is located or from the beginning of any selected lines.

ToolsUppercase (Ctrl+U)

Put the selected text or the letter after the cursor in uppercase.

ToolsLowercase (Ctrl+Shift+U)

Put the selected text or the letter after the cursor in lowercase.

ToolsCapitalize (Ctrl+Alt+U)

Capitalize the selected text or the current word.

ToolsJoin Lines (Ctrl+J)

Joins the selected lines, or the current line and the line below with one white space character as a separator. Leading/trailing white space on joined lines is removed in the affected ends.

ToolsApply Word Wrap

Apply static word wrapping on all the document. That means that a new line of text will automatically start when the current line exceeds the length specified by the Wrap words at option in the Editing tab in SettingsConfigure Editor...