2011-12-13 11:52:47 +01:00
|
|
|
/****************************************************************************
|
|
|
|
|
**
|
2015-01-14 18:07:15 +01:00
|
|
|
** Copyright (C) 2015 The Qt Company Ltd.
|
|
|
|
|
** Contact: http://www.qt.io/licensing
|
2011-12-13 11:52:47 +01:00
|
|
|
**
|
2012-10-02 09:12:39 +02:00
|
|
|
** This file is part of Qt Creator
|
2011-12-13 11:52:47 +01:00
|
|
|
**
|
|
|
|
|
**
|
|
|
|
|
** GNU Free Documentation License
|
|
|
|
|
**
|
|
|
|
|
** Alternatively, this file may be used under the terms of the GNU Free
|
|
|
|
|
** Documentation License version 1.3 as published by the Free Software
|
|
|
|
|
** Foundation and appearing in the file included in the packaging of this
|
|
|
|
|
** file.
|
|
|
|
|
**
|
|
|
|
|
**
|
|
|
|
|
****************************************************************************/
|
|
|
|
|
|
|
|
|
|
// **********************************************************************
|
|
|
|
|
// 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.
|
|
|
|
|
// **********************************************************************
|
|
|
|
|
|
|
|
|
|
/*!
|
2014-03-17 12:18:12 +01:00
|
|
|
\contentspage {Qt Creator Manual}
|
2011-12-13 11:52:47 +01:00
|
|
|
\previouspage creator-usability.html
|
|
|
|
|
\page creator-coding.html
|
2015-10-21 09:53:47 +02:00
|
|
|
\nextpage creator-modeling.html
|
2011-12-13 11:52:47 +01:00
|
|
|
|
|
|
|
|
\title Coding
|
|
|
|
|
|
|
|
|
|
\image creator_coding.png
|
|
|
|
|
|
|
|
|
|
\list
|
|
|
|
|
|
2015-10-21 09:53:47 +02:00
|
|
|
\li \l{Modeling}
|
|
|
|
|
|
|
|
|
|
You can use the experimental model editor to create Universal
|
|
|
|
|
Modeling Language (UML) style models with structured diagrams and
|
|
|
|
|
store them in XML format.
|
|
|
|
|
|
2013-02-06 08:50:23 +01:00
|
|
|
\li \l{Writing Code}
|
2011-12-13 11:52:47 +01:00
|
|
|
|
|
|
|
|
Writing, editing, and navigating in source code are core tasks in
|
|
|
|
|
application development. Therefore, the code editor is one of the
|
2015-06-18 10:41:19 +02:00
|
|
|
key components of \QC. You can use the code editor in the
|
|
|
|
|
\uicontrol Edit mode.
|
2011-12-13 11:52:47 +01:00
|
|
|
|
2013-02-06 08:50:23 +01:00
|
|
|
\li \l{Finding}
|
2011-12-13 11:52:47 +01:00
|
|
|
|
|
|
|
|
Use the incremental and advanced search to search from currently
|
|
|
|
|
open projects or files on the file system or use the locator to
|
2015-06-18 10:41:19 +02:00
|
|
|
browse through projects, files, classes, functions, documentation
|
|
|
|
|
and file systems.
|
2011-12-13 11:52:47 +01:00
|
|
|
|
2013-02-06 08:50:23 +01:00
|
|
|
\li \l{Refactoring}
|
2011-12-13 11:52:47 +01:00
|
|
|
|
|
|
|
|
Code refactoring is the process of improving and simplifying code
|
|
|
|
|
without modifying the existing functionality of an application. You
|
|
|
|
|
can easily find and rename symbols and apply predefined actions to
|
|
|
|
|
refactor code.
|
|
|
|
|
|
2014-03-05 13:35:19 +01:00
|
|
|
\li \l{Beautifying Source Code}
|
|
|
|
|
|
|
|
|
|
Beautifying code means applying indentation and style to source
|
|
|
|
|
code files. You can use the Artistic Style, ClangFormat, or
|
|
|
|
|
Uncrustify tool to format source files.
|
|
|
|
|
|
2013-02-06 08:50:23 +01:00
|
|
|
\li \l{Configuring the Editor}
|
2011-12-13 11:52:47 +01:00
|
|
|
|
|
|
|
|
You can change the fonts, colors, highlighting, and indentation.
|
2014-03-04 00:12:11 +01:00
|
|
|
If you are used to the Vim editor, you can even run the main
|
2014-12-11 15:43:19 +01:00
|
|
|
editor in a manner similar to it in the \uicontrol{FakeVim} mode.
|
2011-12-13 11:52:47 +01:00
|
|
|
|
|
|
|
|
\endlist
|
|
|
|
|
|
|
|
|
|
\section1 Related Topics
|
|
|
|
|
|
|
|
|
|
\list
|
|
|
|
|
|
2013-02-06 08:50:23 +01:00
|
|
|
\li \l{Editing MIME Types}
|
2011-12-13 11:52:47 +01:00
|
|
|
|
|
|
|
|
\QC uses the MIME type of a file to determine which mode and editor
|
|
|
|
|
to use for opening the file. If your files do not match the
|
|
|
|
|
predefined MIME types, you can edit the MIME types.
|
|
|
|
|
|
2013-06-06 17:49:28 +02:00
|
|
|
\li \l{Comparing Files}
|
|
|
|
|
|
|
|
|
|
You can use a diff editor to compare two versions of a file and
|
2014-12-11 15:43:19 +01:00
|
|
|
view the differences side-by-side in the \uicontrol Edit mode.
|
2013-06-06 17:49:28 +02:00
|
|
|
|
2014-01-10 14:15:59 +01:00
|
|
|
\li \l{Parsing C++ Files}
|
|
|
|
|
|
|
|
|
|
An experimental Clang code model plugin enables you to replace the
|
|
|
|
|
built-in \QC code model with the Clang code model. Clang is a C
|
|
|
|
|
language family front end for LLVM. Clang provides you with more
|
|
|
|
|
accurate information than the built-in code model but can be slower
|
|
|
|
|
to use for large projects.
|
|
|
|
|
|
2011-12-13 11:52:47 +01:00
|
|
|
\endlist
|
|
|
|
|
|
|
|
|
|
*/
|