# The Menu Entries

## The File Menu

&Ctrl;N File New

  This starts a new document in a new and independent editor window.

&Ctrl;O File Open...

  Displays a standard &kde; Open File dialog. Use the file view to select the file you want to open, and click on Open to open it.

File Open Recent

  This is a shortcut to open recently saved documents. Clicking on this item opens a list to the side of the menu with several of the most recently saved files. Clicking on a specific file will open it in &kappname; - if the file still resides at the same location.

&Ctrl;S File Save

  This saves the current document. If there has already been a save of the document then this will overwrite the previously saved file without asking for the user's consent. If it is the first save of a new document the save as dialog (described below) will be invoked.

File Save As...

  This allows a document to be saved with a new file name. This is done by means of the file dialog box described above in the Open section of this help file.

F5 File Reload

  Reloads the active file from disk. This command is useful if another program or process has changed the file while you have it open in &kappname;.

&Ctrl;P File Print...

  Opens a simple print dialog allowing the user to specify what, where, and how to print.

File Export as HTML

  Export your file in &HTML; format so your document can be viewed as a web page. This item is only displayed when the plugin Exporter is loaded.

&Ctrl;W File Close

  Close the active file with this command. If you have made unsaved changes, you will be prompted to save the file before &kappname; closes it.

&Ctrl;Q File Quit

  This will close the editor window, if you have more than one instance of &kappname; running, through the New or New Window menu items, those instances will not be closed.

## The Edit Menu

&Ctrl;Z Edit Undo

  This is used to eliminate or reverse the most recent user action or operation.

&Ctrl;&Shift;Z Edit Redo

  This will reverse the most recent change (if any) made using Undo

&Ctrl;X Edit Cut

  This command deletes the current selection and places it on the clipboard. The clipboard is a feature of &kde; that works invisibly to provide a way to transfer data between applications.

&Ctrl;C Edit Copy

  This copies the currently selected text to the clipboard so that it may be pasted elsewhere. The clipboard is a feature of &kde; that works invisibly to provide a way to transfer data between applications.

&Ctrl;V Edit Paste

  This will insert the contents of the clipboard at the cursor position. The clipboard is feature of &kde; that works invisibly to provide a way to transfer data between applications.

Edit Clipboard History

  This submenu will display the beginning of portions of text recently copied to the clipboard. Select an item from this menu to paste it in the currently open file.

Edit Copy as HTML

  This copies the currently selected text to the clipboard as &HTML;. This item is only displayed when the plugin Exporter is loaded.

&Ctrl;A Edit Select All

  This will select the entire document. This could be very useful for copying the entire file to another application.

&Ctrl;&Shift;A Edit Deselect

  Deselects the selected text in the editor if any.

&Ctrl;&Shift;B Edit Block Selection Mode

  Toggles Selection Mode. When the Selection Mode is BLOCK, you can make vertical selections, &eg; select column 5 to 10 in lines 9 to 15. The status bar shows the current state of the Selection Mode, either BLOCK or LINE.

Meta&Ctrl;V Edit VI input Mode

  Switch to a vi-like, modal editing mode. This mode supports the most used commands and motions from vim's normal and visual mode and has an optional vi mode statusbar. This status bar shows commands while they are being entered, output from commands and the current mode.The behavior of this mode can be configured in the Vi Input Mode section of the Editing page in &kappname;'s settings dialog.

Ins Edit Overwrite Mode

  Toggles the Insert/Overwrite modes. When the mode is INS, you insert characters where the cursor is. When the mode is OVR, writing characters will replace the current characters if your cursor is positioned before any character. The status bar shows the current state of the Overwrite Mode, either INS or OVR.

&Ctrl;F Edit Find...

  This opens the incremental search bar at the bottom of the editor window. On the left side of the bar is a button with an icon to close the bar, followed by a small text box for entering the search pattern.

  When you start entering characters of your search pattern, the search starts immediately. If there is a match in the text this is highlighted and the background color of the entry field changes to light green. If the search pattern does not match any string in the text, this is indicated by a light red background color of the entry field and Not found is displayed at the right side of the bar.

  Use the Next or Previous button to jump to the next or previous match in the document.

  You can choose whether the search should be case sensitive. Selecting Match Case will limit finds to entries that match the case (upper or lower) of each of the characters in the search pattern.

  Click on the button with a green arrow icon at the right side of the incremental search bar to switch to the power search and replace bar.

F3 Edit Find Variants Find Next

  This repeats the last find operation, if any, without calling the incremental search bar.

&Shift;F3 Edit Find Variants Find Previous

  This repeats the last find operation, if any, without calling the incremental search bar, and searching backwards instead of forwards through the document.

&Ctrl;H Edit Find Variants Find Selected

  Finds next occurrence of selected text.

&Ctrl;&Shift;H Edit Find Variants Find Selected Backwards

  Finds previous occurrence of selected text.

&Ctrl;R Edit Replace...

  This command opens the power search and replace bar. On the upper left side of the bar is a button with an icon to close the bar, followed by a small text box for entering the search pattern.

  You can control the search mode by selecting Plain text, Whole words, Escape sequences or Regular expression from the drop down box.

  If Escape sequences or Regular expression are selected, the Add... menuitem at the bottom of the context menu of the text boxes will be enabled and allows you to add escape sequences or regular expression items to the search or replace pattern from predefined lists.

  Use the Next or Previous button to jump to the next or previous match in the document.

  Enter the text to replace with in the text box labeled Replace and click the Replace button to replace only the highlighted text or the Replace All button to replace the search text in the whole document.

  You can modify the search and replace behavior by selecting different options at the bottom of the bar. Selecting Match Case will limit finds to entries that match the case (upper or lower) of each of the characters in the search pattern. Selection Only will search and replace within the current selection only. The Find All button highlights all matches in the document and shows the number of found matches in a small popup.

  Click on the button with a green arrow icon at the right side of the power search and replace bar to switch to the incremental search bar.

&Ctrl;G Edit Go to Line...

  This opens the goto line bar at the bottom of the window which is used to have the cursor jump to a particular line (specified by number) in the document. The line number may be entered directly into the text box or graphically by clicking on the up or down arrow spin controls at the side of the text box. The little up arrow will increase the line number and the down arrow decrease it. Close the bar with a click on the button with an icon on the left side of the bar.

## The View Menu

The View menu allows you to manage settings specific to the active editor, and to manage frames.

View New Window

  Create another window containing the current document. All changes to the document in one window are reflected in the other window and vice versa.

F7 View Switch to Command Line

  Displays the Katepart command line at the bottom of the window. In the command line, type `help` to get help and `help list` to get a list of commands. For more information on the command line, see The Editor Component Command Line.

View Show the Javascript Console

  This opens a tool view that allows you to run Javascript code interactively. For more information, see Extending &kate; with Scripts

View Schema

  Select a font schema.

F10 View Dynamic Word Wrap

  The text lines will be wrapped at the view border on the screen.

View Dynamic Word Wrap Indicators

  Choose when and how the dynamic word wrap indicators should be displayed. This is only available if the Dynamic Word Wrap option is checked.

View Show Static Word Wrap Marker

  If this option is checked, a vertical line will be drawn at the word wrap column as defined in the Settings Configure Editor... in the Editing tab. Please note that the word wrap marker is only drawn if you use a fixed pitch font.

F6 View Show Icon Border

  This is a toggle item. Setting it on checked will make the Icon Border visible in the left side of the active editor, and vice versa. The Icon Border indicates the positions of the marked lines in the editor.

F11 View Show Line Numbers

  This is a toggle Item. Setting it on checked will make a pane displaying the line numbers of the document visible in the left border of the active editor, and vice versa.

View Show Scrollbar Marks

  If this option is checked, the view will show marks on the vertical scrollbar. The marks are equivalent to the marks on the Icon Border.

View Show Scrollbar Minimap

  This will replace the scrollbar with a visualization of the current document. For more information on the scrollbar minimap, see

F9 View Show Folding Markers

  If this option is checked, the marks for code folding will be shown.

View Code Folding
  Fold Current Node

    Collapse the region that contains the cursor.

  Unfold Current Node

    Expand the region that contains the cursor.

  &Ctrl; &Shift;- Fold Toplevel Nodes

    Collapse all toplevel regions in the document. Click onto the right pointing triangle to expand all toplevel regions.

View Enlarge Font

  This increases the display font size.

View Shrink Font

  This decreases the display font size.

## The Bookmarks Menu

&Ctrl;B Bookmarks Set Bookmark

  Sets or removes a bookmark in the current line of the active document. (If it's there, it is removed, otherwise one is set).

Bookmarks Clear All Bookmarks

  This command will remove all the markers from the document as well as the list of markers which is appended at the bottom of this menu item.

&Alt; PgUp Bookmarks Previous

  This will move the cursor to beginning of the first above line with a bookmark. The menuitem text will include the line number and the first piece of text on the line. This item is only available when there is a bookmark in a line above the cursor.

&Alt; PgDown Bookmarks Next

  This will move the cursor to beginning of the next line with a bookmark. The menuitem text will include the line number and the first piece of text on the line. This item is only available when there is a bookmark in a line below the cursor.

At the bottom of this menu, a list of bookmarks appears if any bookmarks are available for this window.

## The Tools Menu

Tools Read Only Mode

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

Tools Mode

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

Tools Highlighting

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

Tools Indentation

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

Tools Encoding

  You can overwrite the default encoding set in Settings Configure 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.

Tools End of Line

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

Tools Add 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.

Tools Scripts

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

  For more information about the scripts included with &kate;, see Scripts.

&Ctrl;Space Tools Invoke Code Completion

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

Tools Word 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.

&Ctrl;&Shift;O Tools Spelling Automatic Spell Checking

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

Tools Spelling Spelling...

  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.

    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.

Tools Spelling Spelling (from cursor)...

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

Tools Spelling Spellcheck Selection...

  Spellchecks the current selection.

Tools Spelling Change 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 &eg; for automatic spellcheck of text in different languages.

Tools Clean 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.

Tools Align

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

&Ctrl;D Tools Comment

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

&Ctrl;&Shift;D Tools Uncomment

  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.

&Ctrl;U Tools Uppercase

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

&Ctrl;&Shift;U Tools Lowercase

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

&Ctrl;&Alt;U Tools Capitalize

  Capitalize the selected text or the current word.

&Ctrl;J Tools Join Lines

  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.

Tools Apply 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 Settings Configure Editor...

Tools Create Snippet

  Create a new snippet, which is a reusable chunk of text you may insert in any part of any document.

Tools Snippets...

  Display a list of available snippets.

If the plugin Insert File is enabled, you will find here an additional menu item Insert File....

## The Settings Menu

Settings Show Statusbar

  When checked, this displays a small bar at the bottom of the editor containing information about the status of the current document. When unchecked the status bar is hidden.

Settings Show Toolbar

  When checked, this displays a movable toolbar containing buttons used to initiate frequently used commands. When unchecked the toolbar is hidden.

Settings Show Path

  When selected, this displays in the titlebar the path (its location in the file system) of the current document. When unchecked the path is hidden.

Settings Configure Editor...

  This menu item opens a dialog whereby several different settings may be adjusted.

Settings Configure Shortcuts...

  Displays the familiar &kde; Keyboard Shortcut Configuration Dialog. For more information on using this, see the Using and Customizing Shortcuts section of the &kde; Fundamentals documentation.

Settings Configure Toolbars...

  Displays the familiar &kde; Toolbar Configuration Dialog. For more information on using this, see the Customizing Toolbars section of the &kde; Fundamentals documentation.

## The Help Menu

&help.menu.documentation;