Editing LATEX Documents
The internal editor that Kile uses is . is a text editor created for programmers, which incorporates the ability to read and highlight many different types of text files, among which are LATEX and BibTEX; you can access many options for directly from Kile's Tools menu.
To learn more about and its capabilities, see the Handbook. Kile users can start reading from the chapter Working with the Editor.

The LATEX Reference
Kile features a very practical LATEX tag reference, which you can access by choosing Help LaTeX Reference. It contains a thorough description of almost all the commands that you may use in LATEX and their syntax.

Cursor Movements
To select text, you have the following options:
Hold left mouse button, and drag mouse to highlight text.
Click once on a word to move the cursor to a new area.
Click twice on a word to select the whole word.
Click twice on a word and pressing to select the whole TEX word. This means clicking in this way on \par from \par\bigskip only select \par.
Click three times to select the whole sentence.
Holding the left mouse button, and dragging the text you want to select, automatically copies the selected text to the clipboard.
Holding and using the arrow keys allows you to select portions of the source code in the editor window.

Brackets
Bracket completion is a visual tool that the editor view uses to indicate to you which bracket matches which. If you open any .tex file, and select any bracket, whether it be a parenthesis (), square brackets [] or braces {}, the editor will highlight the bracket and its match in yellow (this default color can be changed). So, for example, if you position the cursor on the braces in \section{Introduction}, you would see \section{Introduction} in the default yellow highlight, showing you the location of the beginning and ending brackets.

Highlighting
Kile has the ability to look for and highlight different types of code. For example, LATEX commands are distinguished from normal text, and math formulas are also highlighted in a different color.

Bullets
Many wizards can insert optional bullets, a special kind of bookmark within the text. The menu entries Edit Bullets or the corresponding keyboard shortcuts will allow you to jump to the next or last bullet. This will also highlight this bullet so that it will be deleted automatically, when you enter your first letter.
Bullets
Bullets
Right Next Bullet 	Jump to the next bullet in the text if there is one.
Left Last Bullet 	Jump to the previous bullet in the text if there is one.

Select
Editing is of course one of the main aspects when you use a program like Kile. Although already has great capabilities, Kile adds some important features, which are especially needed to write LATEX source. LATEX always needs a lot of environments and groups, so Kile supports very special commands to select them. Under Edit Select you will find the following commands to select text.
Edit->Select items
Edit->Select items
S ,E Environment (inside) 	Select an environment without the surrounding tags. If this command is called, when an environment is already selected, Kile will expand the selection to the next surrounding environment.
S ,F Environment (outside) 	Select an environment including the surrounding tags. This selection can also be expanded with a second call of this command.
S ,T TeX Group (inside) 	Select a TEX group inside the surrounding braces.
S ,U TeX Group (outside) 	Select a TEX group including the surrounding braces.
S ,M Math Group 	Select the current math group including the math commands.
S ,P Paragraph 	Select a whole paragraph, a group of text lines separated on both sides by empty lines. A paragraph does not mean just continuous lines of text, as it is in other text editors. This extended meaning also includes tables, LATEX commands and all other lines of source. The only important thing for Kile is that this kind of paragraph is separated by two empty lines.
S ,L Line 	Select the text line of the current cursor position.
S ,W TeX Word 	Select the word under the current cursor position. This selection has also en extended meaning, because this command can also select LATEX commands, which begin with a backslash and may also have an optional star at the end.

Select LATEX commands
Kile has an extended feature to select LATEX commands. If you for example have typed

text \bfseries\itshape more text

and double click on one of the LATEX commands, both will be selected. But often you only want to select one of two or more commands. This can be done using the key. You only have to press the key and a double click will only select the desired command.

Delete
To delete some parts of a document you can of course select them, and then use the Delete key. also offers the command K which deletes the whole line. But Kile offers a faster way with its own delete commands. Under Edit Delete you will find the following commands to delete text.
Edit->Delete items
Edit->Delete items
T ,E Environment (inside) 	Delete an environment without the surrounding tags.
T ,F Environment (outside) 	Delete an environment including the surrounding tags.
T ,T TeX Group (inside) 	Delete a TEX group inside the surrounding braces.
T ,U TeX Group (outside) 	Delete a TEX group including the surrounding braces.
T ,M Math Group 	Delete the current math group including the math commands.
T ,P Paragraph 	Delete a whole paragraph. Look at the Select Paragraph command, how a paragraph is defined in Kile.
T ,I To End of Line 	Delete the text from the current cursor position to the end of the line.
T ,W TeX Word 	Delete the word or LATEX command under the current cursor position.

Environment
It has already been mentioned that environments are a central point in LATEX. So Kile offers five other commands to make the work with LATEX as easy as possible under submenus Edit Environment.
Edit->Environment items
Edit->Environment items
E ,B Go to Begin 	This command will jump to the beginning of the current environment, wherever your current position is. The cursor will be placed directly in front of the opening environment tag.
E ,E Go to End 	This command will jump to the end of the current environment, wherever your current position is. The cursor will be placed directly behind the closing environment tag.
E ,M Match 	When your cursor is placed in front of or above the \begin{environment} tag, it will be moved to the opposite end of the environment and vice versa.
E ,C Close 	Typing a lot of nested environment tags, you may lose control of all those environments. This command will close the last opened environment, so that the nested structure of environments will not be broken.
E ,A Close All 	This closes all open environments, not only the last opened environment.

TEX Group
Kile also offers some special commands for LATEX groups, which are determined by braces {...}. In submenu Edit TeX Group you will find some important commands, which correspond to those from Edit Environment.
Edit->TeX Group
Edit->TeX Group
G ,B Go to Begin 	This command will jump to the beginning of the current group, wherever your current position is. The cursor will be placed directly in front of the opening brace.
G ,E Go to End 	This command will jump to the end of the current group, wherever your current position is. The cursor will be placed directly behind the closing brace.
G ,M Match 	When your cursor is placed in front of or behind an opening brace of a TEX group, it will be moved to the opposite end of the group and vice versa.
G ,C Close 	Typing a lot of nested group braces may be hard work. This command will close the last opened group, so that the nested structure of TEX groups will not be broken.

Double Quotes
In LATEX, two single quotes are used as double quotes. To help you insert these efficiently, Kile allows you to press " to insert two opening single quotes. Furthermore, if you want to close a quotation, you also have to press ". Kile will be smart enough to recognize this situation and inserts two closing quotes for LATEX.
To get a literal double quote on the other side, press " twice.
You can enable or disable this auto insertion of opening and closing double quotes in section Settings Configure Kile... LaTeX.
Double Quotes
Double Quotes
If you also include language-specific options like ngerman or french, you will also be able to use German or French double quotes. Many more languages are available.

Smart Newline
If you press Return, Kile inserts an intelligent newline. If your current position is inside a list environment, like enumerate or itemize, Kile will not only insert a newline, but also add a \item command.
If you are inside a tabular environment, Kile will finish the current line with \\, followed by the newline.
If you are inside a LATEX comment, Kile will start the next line with a %.
Even better, Kile is smart enough to support predefined LATEX and user defined environments, which can be added in section Settings Configure Kile... LaTeX.

Smart Tabulator
Some users like to arrange columns in tabular environments and put all ampersand characters & beneath each other. Kile tries to support this. If you press &, Kile will look for the next tab in the row above. Although this tab may not be the corresponding tab, Kile will add some spaces to adjust the column position with the current tab.