Doc: Remove "Coding", "Finding", and "Configuring the Editor"

- In the QDS Manual, edit the "Code" view docs
- In the QDS Manual, add topics related to coding to the "Code"
  view docs by using \ingroup and \generatelist commands

Task-number: QTCREATORBUG-29361
Change-Id: I0966986a3b01b3551e8b68265e22fe86d1d5933d
Reviewed-by: Mats Honkamaa <mats.honkamaa@qt.io>
This commit is contained in:
Leena Miettinen
2024-03-14 16:55:24 +01:00
parent 05b640abc0
commit 9884620724
23 changed files with 86 additions and 231 deletions

View File

@@ -10,6 +10,7 @@
\endif \endif
\ingroup creator-how-to-edit \ingroup creator-how-to-edit
\ingroup studio-how-to-code
\title Complete code \title Complete code
@@ -129,12 +130,13 @@
/*! /*!
\page creator-preferences-text-editor-completion.html \page creator-preferences-text-editor-completion.html
\if defined(qtdesignstudio) \if defined(qtdesignstudio)
\previouspage creator-completing-code.html \previouspage qtquick-text-editor.html
\else \else
\previouspage creator-reference.html \previouspage creator-reference.html
\endif \endif
\ingroup creator-reference-preferences-text-editor \ingroup creator-reference-preferences-text-editor
\ingroup studio-preferences-code
\title Completion \title Completion
@@ -192,12 +194,13 @@
/*! /*!
\page creator-preferences-text-editor-shippets.html \page creator-preferences-text-editor-shippets.html
\if defined(qtdesignstudio) \if defined(qtdesignstudio)
\previouspage creator-completing-code.html \previouspage qtquick-text-editor.html
\else \else
\previouspage creator-reference.html \previouspage creator-reference.html
\endif \endif
\ingroup creator-reference-preferences-text-editor \ingroup creator-reference-preferences-text-editor
\ingroup studio-preferences-code
\title Snippets \title Snippets
@@ -330,12 +333,13 @@
/*! /*!
\page creator-how-to-add-code-snippets.html \page creator-how-to-add-code-snippets.html
\if defined(qtdesignstudio) \if defined(qtdesignstudio)
\previouspage creator-completing-code.html \previouspage qtquick-text-editor.html
\else \else
\previouspage creator-how-tos.html \previouspage creator-how-tos.html
\endif \endif
\ingroup creator-how-to-configure-editors \ingroup creator-how-to-configure-editors
\ingroup studio-how-to-code
\title Add code snippets to the auto-complete menu \title Add code snippets to the auto-complete menu

View File

@@ -10,6 +10,7 @@
\endif \endif
\ingroup creator-how-to-edit \ingroup creator-how-to-edit
\ingroup studio-how-to-code
\title Indent text or code \title Indent text or code

View File

@@ -4,12 +4,13 @@
/*! /*!
\page creator-how-to-rename-symbols.html \page creator-how-to-rename-symbols.html
\if defined(qtdesignstudio) \if defined(qtdesignstudio)
\previouspage studio-finding.html \previouspage qtquick-text-editor.html
\else \else
\previouspage creator-how-tos.html \previouspage creator-how-tos.html
\endif \endif
\ingroup creator-how-to-search \ingroup creator-how-to-search
\ingroup studio-how-to-refactor-code
\title Rename symbols \title Rename symbols

View File

@@ -10,6 +10,7 @@
\endif \endif
\ingroup creator-how-to-edit \ingroup creator-how-to-edit
\ingroup studio-how-to-code
\title Check code syntax \title Check code syntax
@@ -103,6 +104,7 @@
\endif \endif
\ingroup creator-reference-editors \ingroup creator-reference-editors
\ingroup studio-how-to-code
\title JavaScript and QML Checks \title JavaScript and QML Checks
@@ -787,6 +789,7 @@
\endif \endif
\ingroup creator-how-to-edit \ingroup creator-how-to-edit
\ingroup studio-how-to-code
\title Automatically format QML/JS files \title Automatically format QML/JS files

View File

@@ -1,47 +0,0 @@
// Copyright (C) 2023 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GFDL-1.3-no-invariants-only
// **********************************************************************
// NOTE: the sections are not ordered by their logical order to avoid
// reshuffling the file each time the index order changes (i.e., often).
// Run the fixnavi.pl script to adjust the links to the index order.
// **********************************************************************
/*!
\page creator-coding.html
\if defined(qtdesignstudio)
\previouspage studio-designer-developer-workflow.html
\else
\previouspage creator-usability.html
\endif
\nextpage creator-editor-functions.html
\title Coding
\if defined(qtcreator)
\image front-coding.png
\endif
\list
\if defined(qtdesignstudio)
\li \l{Finding}
Use the incremental and advanced search to search in currently
open projects or files on the file system or use the locator to
browse through projects, files, classes, functions, documentation
and file systems.
\endif
\li \l{Configuring the Editor}
You can change the fonts, colors, highlighting, and indentation.
\if defined(qtcreator)
If you are used to the Vim editor, you can even run the main
editor in a manner similar to it in the \uicontrol{FakeVim} mode.
\endif
\endlist
\sa {Apply quick fixes}
*/

View File

@@ -10,13 +10,13 @@
/*! /*!
\page creator-preferences-text-editor-font-colors.html \page creator-preferences-text-editor-font-colors.html
\if defined(qtdesignstudio) \if defined(qtdesignstudio)
\previouspage creator-editor-options.html \previouspage qtquick-text-editor.html
\nextpage studio-debugging.html
\else \else
\previouspage creator-reference.html \previouspage creator-reference.html
\endif \endif
\ingroup creator-reference-preferences-text-editor \ingroup creator-reference-preferences-text-editor
\ingroup studio-preferences-code
\title Font & Colors \title Font & Colors
@@ -50,13 +50,13 @@
/*! /*!
\page creator-how-to-change-editor-colors.html \page creator-how-to-change-editor-colors.html
\if defined(qtdesignstudio) \if defined(qtdesignstudio)
\previouspage creator-editor-options.html \previouspage qtquick-text-editor.html
\nextpage studio-debugging.html
\else \else
\previouspage creator-how-tos.html \previouspage creator-how-tos.html
\endif \endif
\ingroup creator-how-to-configure-editors \ingroup creator-how-to-configure-editors
\ingroup studio-how-to-code
\title Change editor colors \title Change editor colors

View File

@@ -1,60 +0,0 @@
// Copyright (C) 2023 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GFDL-1.3-no-invariants-only
// **********************************************************************
// NOTE: the sections are not ordered by their logical order to avoid
// reshuffling the file each time the index order changes (i.e., often).
// Run the fixnavi.pl script to adjust the links to the index order.
// **********************************************************************
/*!
\page creator-editor-options.html
\if defined(qtdesignstudio)
\previouspage creator-editor-quick-fixes.html
\else
\previouspage creator-beautifier.html
\endif
\nextpage creator-preferences-text-editor-font-colors.html
\title Configuring the Editor
You can configure the text editor to suit your specific needs by selecting
\preferences > \uicontrol{Text Editor}.
\image qtcreator-font-colors.png "Text Editor preferences"
The settings you specify apply globally to all projects.
You can also specify indentation settings separately for C++ and QML files
either globally or for the open project. For more information, see
\l{Indent text or code}.
You can perform the following configuration actions:
\list
\li Set the \l{Font & Colors}{font preferences and
apply color schemes} for syntax highlighting in
\uicontrol {Font & Colors}.
\li Specify \l{Download highlight definitions}
{definition files for syntax highlighting} for other types of files
than C++ or QML in \uicontrol {Generic Highlighter}.
\li Set \l{Indent text or code}{tabs, indentation, the handling of
whitespace, and mouse operations} in \uicontrol Behavior.
\li Set various display properties, such as \l{Highlight code blocks}
{highlighting} or folding code blocks and text wrapping in
\uicontrol Display.
\li Add, modify, and remove \l{Snippets}{code snippets} in
\uicontrol Snippets.
\li Configure \l{Completion}{code completion} in \uicontrol Completion.
\endlist
\if defined(qtcreator)
\sa {Specify editor settings}, {Edit like in Vim}, {Completion}, {Snippets}
\endif
*/

View File

@@ -4,13 +4,13 @@
/*! /*!
\page creator-preferences-text-editor-behavior.html \page creator-preferences-text-editor-behavior.html
\if defined(qtdesignstudio) \if defined(qtdesignstudio)
\previouspage creator-indenting-code.html \previouspage qtquick-text-editor.html
\nextpage creator-preferences-qtquick-code-style.html
\else \else
\previouspage creator-reference.html \previouspage creator-reference.html
\endif \endif
\ingroup creator-reference-preferences-text-editor \ingroup creator-reference-preferences-text-editor
\ingroup studio-preferences-code
\title Behavior \title Behavior

View File

@@ -4,14 +4,13 @@
/*! /*!
\page creator-editor-quick-fixes.html \page creator-editor-quick-fixes.html
\if defined(qtdesignstudio) \if defined(qtdesignstudio)
\previouspage creator-jump-to-the-code.html \previouspage qtquick-text-editor.html
\nextpage creator-reference-qml-quick-fixes.html
\else \else
\previouspage creator-how-tos.html \previouspage creator-how-tos.html
\endif \endif
\ingroup creator-how-to-edit \ingroup creator-how-to-edit
\ingroup studio-code-view \ingroup studio-how-to-refactor-code
\title Apply quick fixes \title Apply quick fixes
@@ -101,14 +100,13 @@
/*! /*!
\page creator-reference-qml-quick-fixes.html \page creator-reference-qml-quick-fixes.html
\if defined(qtdesignstudio) \if defined(qtdesignstudio)
\previouspage creator-editor-quick-fixes.html \previouspage qtquick-text-editor.html
\nextpage creator-editor-options.html
\else \else
\previouspage creator-reference.html \previouspage creator-reference.html
\endif \endif
\ingroup creator-reference \ingroup creator-reference-editors
\ingroup studio-code-view \ingroup studio-how-to-refactor-code
\title QML Quick Fixes \title QML Quick Fixes

View File

@@ -4,13 +4,13 @@
/*! /*!
\page creator-editor-finding.html \page creator-editor-finding.html
\if defined(qtdesignstudio) \if defined(qtdesignstudio)
\previouspage studio-finding.html \previouspage qtquick-text-editor.html
\nextpage creator-how-to-advanced-search.html
\else \else
\previouspage creator-how-tos.html \previouspage creator-how-tos.html
\endif \endif
\ingroup creator-how-to-search \ingroup creator-how-to-search
\ingroup studio-how-to-search
\title Search in current file \title Search in current file
@@ -130,13 +130,13 @@
/*! /*!
\page creator-how-to-advanced-search.html \page creator-how-to-advanced-search.html
\if defined(qtdesignstudio) \if defined(qtdesignstudio)
\previouspage creator-editor-finding.html \previouspage qtquick-text-editor.html
\nextpage creator-how-to-rename-symbols.html
\else \else
\previouspage creator-how-tos.html \previouspage creator-how-tos.html
\endif \endif
\ingroup creator-how-to-search \ingroup creator-how-to-search
\ingroup studio-how-to-search
\title Search in projects or file systems \title Search in projects or file systems
@@ -216,9 +216,7 @@
\if defined(qtcreator) \if defined(qtcreator)
\sa {Search}{How To: Search}, {Find symbols}, {Turn on Silver Searcher} \sa {Search}{How To: Search}, {Find symbols}, {Turn on Silver Searcher}
\else
\sa {Search in current file}
\endif \endif
\sa {Search Results View} \sa {Search in current file}, {Search Results View}
*/ */

View File

@@ -10,6 +10,7 @@
\endif \endif
\ingroup creator-how-to-edit \ingroup creator-how-to-edit
\ingroup studio-how-to-highlight-code
\title Download highlight definitions \title Download highlight definitions
@@ -77,6 +78,7 @@
\endif \endif
\ingroup creator-how-to-edit \ingroup creator-how-to-edit
\ingroup studio-how-to-highlight-code
\title Highlight code blocks \title Highlight code blocks

View File

@@ -9,7 +9,7 @@
/*! /*!
\page creator-usability.html \page creator-usability.html
\nextpage creator-coding.html \previouspage creator-reference.html
\ingroup creator-reference \ingroup creator-reference

View File

@@ -25,10 +25,6 @@
\endlist \endlist
\li \l{Tutorials} \li \l{Tutorials}
\generatelist creator-tutorials \generatelist creator-tutorials
\li \l{Coding}
\list
\li \l{Configuring the Editor}
\endlist
\li \l{Running on Devices} \li \l{Running on Devices}
\list \list
\li \l{Validating with Target Hardware} \li \l{Validating with Target Hardware}

View File

@@ -4,13 +4,13 @@
/*! /*!
\page creator-preferences-qtquick-code-style.html \page creator-preferences-qtquick-code-style.html
\if defined(qtdesignstudio) \if defined(qtdesignstudio)
\previouspage creator-preferences-text-editor-behavior.html \previouspage qtquick-text-editor.html
\nextpage qt-quick-toolbars.html
\else \else
\previouspage creator-reference.html \previouspage creator-reference.html
\endif \endif
\ingroup creator-reference-preferences \ingroup creator-reference-preferences
\ingroup studio-preferences-code
\title Qt Quick Code Style \title Qt Quick Code Style

View File

@@ -16,6 +16,7 @@
\endif \endif
\ingroup creator-how-to-edit \ingroup creator-how-to-edit
\ingroup studio-how-to-code
\title Edit properties of QML types \title Edit properties of QML types

View File

@@ -4,7 +4,7 @@
/*! /*!
\page studio-designer-developer-workflow.html \page studio-designer-developer-workflow.html
\previouspage studio-implementing-applications.html \previouspage studio-implementing-applications.html
\nextpage creator-coding.html \nextpage studio-debugging.html
\title Designer-Developer Workflow \title Designer-Developer Workflow

View File

@@ -2,9 +2,8 @@
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GFDL-1.3-no-invariants-only // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GFDL-1.3-no-invariants-only
/*! /*!
\previouspage creator-how-to-rename-symbols.html
\page creator-jump-to-the-code.html \page creator-jump-to-the-code.html
\nextpage creator-editor-quick-fixes.html \previouspage qtquick-text-editor.html
\title Jump to the Code \title Jump to the Code

View File

@@ -1,37 +0,0 @@
// Copyright (C) 2024 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GFDL-1.3-no-invariants-only
/*!
\page studio-finding.html
\previouspage qt-quick-toolbars.html
\nextpage creator-editor-finding.html
\title Finding
\list
\li \l{Search in current file}
The incremental search highlights the matching strings in the
editor while you type.
\li \l{Search in projects or file systems}
With advanced search, you can search in currently open projects or
files on the file system.
\li \l{Rename symbols}
Search for QML types and rename them in all files in a project.
\li \l{Jump to the Code}
Jump to the code for a specific component directly from
the \uicontrol {2D} view or \uicontrol {Navigator} view.
You can also jump to the code of a particular
\uicontrol {State} or \uicontrol {Connection} from their
corresponding views.
\endlist
*/

View File

@@ -2,7 +2,7 @@
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GFDL-1.3-no-invariants-only // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GFDL-1.3-no-invariants-only
/*! /*!
\previouspage creator-editor-options.html \previouspage studio-designer-developer-workflow.html
\page studio-debugging.html \page studio-debugging.html
\nextpage creator-debugging-qml.html \nextpage creator-debugging-qml.html

View File

@@ -29,14 +29,12 @@
while developers work on the .qml and C++ source files in while developers work on the .qml and C++ source files in
Qt Creator to create an application that you can build and Qt Creator to create an application that you can build and
run on target hardware. run on target hardware.
\li \l{Coding} \li \l{Code}{Coding}
You can use the code editor in the \uicontrol {Code} view or Modify QML code in the \uicontrol {Code} view. The code editor
in the \uicontrol Edit mode to modify QML code. The code editor understands the QML language as code, not just as plain text, so it
understands the QML language as code, not just as plain text. This can offer useful features, such as semantic highlighting, checking
enables it to provide you with useful features, such as semantic code syntax, code completion, and refactoring actions.
highlighting, checking code syntax, code completion, and refactoring
actions.
\li \l{Debugging and Profiling} \li \l{Debugging and Profiling}
\QDS comes with a JavaScript debugger. In the \uicontrol Debug mode, \QDS comes with a JavaScript debugger. In the \uicontrol Debug mode,

View File

@@ -28,6 +28,10 @@
\li \l{Timeline} \li \l{Timeline}
\li \l{Curves} \li \l{Curves}
\li \l{Code} \li \l{Code}
\generatelist studio-how-to-code
\generatelist studio-how-to-refactor-code
\generatelist studio-how-to-search
\generatelist studio-preferences-code
\li \l{Projects} \li \l{Projects}
\li \l{File System} \li \l{File System}
\li \l{Open Documents} \li \l{Open Documents}
@@ -197,33 +201,6 @@
\li \l{Implementing Applications} \li \l{Implementing Applications}
\list \list
\li \l{Designer-Developer Workflow} \li \l{Designer-Developer Workflow}
\li \l{Coding}{Cross-Platform Development}
\list
\li Writing Code
\list
\li \l{Semantic Highlighting}
\li \l{Check code syntax}
\li \l{JavaScript and QML Checks}
\li \l{Qt Quick Code Style}
\li \l{Automatically format QML/JS files}
\li \l{Complete code}
\li \l{Indent text or code}
\li \l{Behavior}
\endlist
\li \l{Finding}
\list
\li \l{Search in current file}
\li \l{Search in projects or file systems}
\li \l{Rename symbols}
\li \l{Jump to the Code}
\endlist
\li \l{Apply quick fixes}
\li \l{QML quick fixes}
\li \l{Configuring the Editor}
\list
\li \l{Font & Colors}
\endlist
\endlist
\li \l{Debugging and Profiling} \li \l{Debugging and Profiling}
\list \list
\li \l{Debugging Qt Quick Projects} \li \l{Debugging Qt Quick Projects}

View File

@@ -66,7 +66,7 @@
\li \b {\l{Implementing Applications}} \li \b {\l{Implementing Applications}}
\list \list
\li \l{Designer-Developer Workflow} \li \l{Designer-Developer Workflow}
\li \l{Coding}{Cross-Platform Development} \li \l{Code}{Coding}
\li \l{Debugging and Profiling} \li \l{Debugging and Profiling}
\endlist \endlist
\li \b {\l{Advanced Designer Topics}} \li \b {\l{Advanced Designer Topics}}

View File

@@ -8,10 +8,10 @@
\title Code \title Code
In the \uicontrol {Code} view, you can view and modify the code in a To view and modify the code in a \l{UI Files}{UI file} (.ui.qml) or
\l{UI Files}{UI file} (.ui.qml) or component file (.qml) that is generated component file (.qml), go to \uicontrol View and select \uicontrol Views >
when you create components in the \l {2D} or \l {3D} view and specify \uicontrol Code. \QDS generates the code when you create components in the
their properties in \l Properties. \l {2D} or \l {3D} view and specify their properties in \l Properties.
\image qtquick-text-editor.png "The Code view" \image qtquick-text-editor.png "The Code view"
@@ -19,22 +19,13 @@
\section1 Editing Code \section1 Editing Code
The code editor offers semantic highlighting, syntax checking, The \uicontrol Code view offers semantic highlighting, syntax checking,
code completion, code indentation, context sensitive help, and code completion, code indentation, context sensitive help, and
in-line error indicators while you are typing. in-line error indicators while you are typing.
For more information, see: For more information, see:
\list \generatelist studio-how-to-code
\li \l{Semantic Highlighting}
\li \l{Check code syntax}
\li \l{JavaScript and QML Checks}
\li \l{Qt Quick Code Style}
\li \l{Automatically format QML/JS files}
\li \l{Complete code}
\li \l{Indent text or code}
\li \l{Edit properties of QML types}
\endlist
\section1 Semantic Highlighting \section1 Semantic Highlighting
@@ -45,6 +36,10 @@
To select the color scheme for semantic highlighting, go to To select the color scheme for semantic highlighting, go to
\preferences > \uicontrol {Text Editor} > \uicontrol {Font & Colors}. \preferences > \uicontrol {Text Editor} > \uicontrol {Font & Colors}.
For more information, see:
\generatelist studio-how-to-highlight-code
\section1 Refactoring Code \section1 Refactoring Code
Code refactoring is the process of improving and simplifying code without Code refactoring is the process of improving and simplifying code without
@@ -52,8 +47,15 @@
and rename symbols and apply quick fixes in the \uicontrol Code view to and rename symbols and apply quick fixes in the \uicontrol Code view to
refactor code. refactor code.
For more information, see:
\generatelist studio-how-to-refactor-code
\section1 Searching in Code \section1 Searching in Code
The incremental search highlights the matching strings in the
\uicontrol Code view while you type.
To open the search dialog in the \uicontrol {Code} view: To open the search dialog in the \uicontrol {Code} view:
\list \list
@@ -62,6 +64,25 @@
\li Select \key Ctrl + \key {F} (or \key Cmd + \key F on \macos). \li Select \key Ctrl + \key {F} (or \key Cmd + \key F on \macos).
\endlist \endlist
\sa {Finding}, {Apply quick fixes}, {Download highlight definitions}, With advanced search, you can search in currently open projects or
{Highlight code blocks}, {QML Quick Fixes} files on the file system.
For more information, see:
\generatelist studio-how-to-search
\section1 Setting Code view Preferences
To set preference for the \uicontrol Code view, go to \preferences >
\uicontrol {Text Editor}.
\image qtcreator-font-colors.png {Text Editor preferences}
The settings you specify apply globally to all projects.
For more information, see:
\generatelist studio-preferences-code
\sa {Jump to the Code}
*/ */