Using the EditorQt Creator's code editor is designed to aid you in creating, editing and navigating code. Qt Creator's code editor is fully equipped with syntax checking, code completion, context sensitive help and in-line error indicators while you are typing. Using the Editor ToolbarThe editor toolbar is located at the top of the editor view. The editor toolbar is context sensitive and shows items relevant to the file currently open in the editor. Use the toolbar to navigate between open files and symbols in use. To browse forward or backward through your location history, click To go to any open file, select it from the Open files drop-down menu. Right-click the menu title and select Copy Full Path to Clipboard to copy the path and name of the current file to the clipboard. To jump to any symbol used in the current file, select it from the Symbols drop-down menu. By default, the symbols are displayed in the order in which they appear in the file. Right-click the menu title and select Sort Alphabetically to arrange the symbols in alphabetic order. Splitting the Editor ViewSplit the editor view when you want to work on and view multiple files on the same screen. You can split the editor view in the following ways:
To move between split views, select Window > Go to Next Split or press Ctrl+E, O. To remove a split view, place the cursor within the view you want to remove and select Window > Remove Current Split or press Ctrl+E, 0. To remove all but the currently selected split view, select Window > Remove All Splits or press Ctrl+E, 1. Using BookmarksTo insert or delete a bookmark right-click the line number and select Toggle Bookmark or press Ctrl+M. To go to previous bookmark in the current session, press Ctrl+,. To go to next bookmark in the current session, press Ctrl+.. Moving to Symbol Definition or DeclarationYou can move directly to the definition or the declaration of a symbol by holding the Ctrl and clicking the symbol. To enable this moving function, in Tools > Options... > Text Editor > Behavior, select Enable mouse navigation. You can also select the symbol and press F2, or right-click the symbol and select Follow Symbol Under Cursor to move to its definition or declaration. This feature is supported for namespaces, classes, methods, variables, include statements, and macros. To switch between the definition and declaration of a symbol, press Shift+F2 or right-click the symbol and select Switch Between Method Declaration/Definition. Using Update Code ModelTo refresh the internal information in Qt Creator pertaining to your code, select Tools > C++ > Update Code Model. Note: In Qt Creator indexing updates the code automatically. Use Update Code Model only as an emergency command. X
|
Publicité
Best OfActualités les plus luesSemaine
Mois
Année
Le Qt Developer Network au hasard![]() Génération de bindings PySide avec ShibokenLe Qt Developer Network est un réseau de développeurs Qt anglophone, où ils peuvent partager leur expérience sur le framework. Lire l'article.
CommunautéRessources
Liens utilesContact
Qt dans le magazine |
Cette page est une traduction d'une page de la documentation de Qt, écrite par Nokia Corporation and/or its subsidiary(-ies). Les éventuels problèmes résultant d'une mauvaise traduction ne sont pas imputables à Nokia. | Qt qtcreator-2.3 | |
Copyright © 2012 Developpez LLC. Tous droits réservés Developpez LLC. Aucune reproduction, même partielle, ne peut être faite de ce site et de l'ensemble de son contenu : textes, documents et images sans l'autorisation expresse de Developpez LLC. Sinon, vous encourez selon la loi jusqu'à 3 ans de prison et jusqu'à 300 000 E de dommages et intérêts. Cette page est déposée à la SACD. | ||
Vous avez déniché une erreur ? Un bug ? Une redirection cassée ? Ou tout autre problème, quel qu'il soit ? Ou bien vous désirez participer à ce projet de traduction ? N'hésitez pas à nous contacter contacter par email ou par MP ! |
Copyright © 2000-2012 - www.developpez.com