From 500623ac48f846da9108fa44d875e7a64607d8c7 Mon Sep 17 00:00:00 2001 From: Leena Miettinen Date: Thu, 20 Apr 2017 13:37:45 +0200 Subject: Doc: Describe setting parse context Update screenshot. Change-Id: I5dc0f839872a7bdec7ae19b2e244d82c2c818701 Reviewed-by: Nikolai Kosjar --- doc/images/qtcreator-editortoolbar-symbols.png | Bin 15472 -> 44955 bytes doc/src/editors/creator-coding-edit-mode.qdoc | 18 +++++++++++++++--- 2 files changed, 15 insertions(+), 3 deletions(-) (limited to 'doc') diff --git a/doc/images/qtcreator-editortoolbar-symbols.png b/doc/images/qtcreator-editortoolbar-symbols.png index e03aebc3ec..779500940d 100644 Binary files a/doc/images/qtcreator-editortoolbar-symbols.png and b/doc/images/qtcreator-editortoolbar-symbols.png differ diff --git a/doc/src/editors/creator-coding-edit-mode.qdoc b/doc/src/editors/creator-coding-edit-mode.qdoc index 3dcffd90e1..1976c490a3 100644 --- a/doc/src/editors/creator-coding-edit-mode.qdoc +++ b/doc/src/editors/creator-coding-edit-mode.qdoc @@ -58,18 +58,30 @@ menu (1). Right-click the menu title and select \uicontrol {Copy Full Path} to copy the path and name of the current file to the clipboard. + Code might be interpreted differently in different contexts. A file can be + used by different projects or subprojects with different defines, or it can + be included in the context of C, C++, Objective-C, or Objective-C++. To + change the active parse context, select an available parse context in the + \uicontrol {Active Parse Context} menu (3). The menu is visible only when + several parse contexts are available. To reset the parse context, + right-click on the menu to open a context menu, and then select + \uicontrol {Clear Preferred Parse Context}. + If the information needed for parsing the project is still incomplete or + incorrect, select \uicontrol {Additional Preprocessor Directives} (2) to + add preprocessor directives. + To jump to any symbol used in the current file, select it from the - \uicontrol Symbols drop-down menu (2). By default, the symbols are displayed + \uicontrol Symbols drop-down menu (4). By default, the symbols are displayed in the order in which they appear in the file. Right-click the menu title and select \uicontrol {Sort Alphabetically} to arrange the symbols in alphabetic order. To jump to a line and column in the current file, select the line and column - indicator (3) or press \key {Ctrl+L} (or \key {Cmd+L} on \macos) to open the + indicator (5) or press \key {Ctrl+L} (or \key {Cmd+L} on \macos) to open the locator. Enter the line number and column number in the locator, separated by a colon (:). - To show the file encoding of the current file on the editor toolbar (4), + To show the file encoding of the current file on the editor toolbar (6), select \uicontrol Tools > \uicontrol Options > \uicontrol {Text Editor} > \uicontrol Display > \uicontrol {Display file encoding}. To change the encoding, click it on the toolbar and select new encoding in the -- cgit v1.2.1