2022-08-19 15:59:36 +02:00
|
|
|
// Copyright (C) 2022 The Qt Company Ltd.
|
|
|
|
|
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GFDL-1.3-no-invariants-only
|
2021-04-08 12:30:30 +02:00
|
|
|
|
|
|
|
|
/*!
|
|
|
|
|
\page creator-file-system-view.html
|
|
|
|
|
\previouspage creator-projects-view.html
|
|
|
|
|
\nextpage creator-open-documents-view.html
|
|
|
|
|
|
|
|
|
|
\title File System
|
|
|
|
|
|
|
|
|
|
If you cannot see a file in the \l Projects view, switch to the
|
|
|
|
|
\uicontrol {File System} view, which shows all the files in the file system.
|
|
|
|
|
|
2021-10-05 15:50:41 +02:00
|
|
|
\if defined(qtdesignstudio)
|
2021-04-08 12:30:30 +02:00
|
|
|
The following image displays the \uicontrol {File System} view in the
|
|
|
|
|
\uicontrol Design mode:
|
|
|
|
|
|
|
|
|
|
\image qtcreator-filesystem-view-design.png "File System view in the Design mode"
|
2021-11-04 17:09:50 +01:00
|
|
|
\else
|
2022-11-04 16:14:22 +01:00
|
|
|
\image qtcreator-filesystem-view.webp "File System view in the sidebar"
|
2021-11-04 17:09:50 +01:00
|
|
|
\endif
|
2021-04-08 12:30:30 +02:00
|
|
|
|
|
|
|
|
To move to the root directory of the file system, select \uicontrol Computer
|
|
|
|
|
in the menu (1). Select \uicontrol Home to move to the user's home
|
|
|
|
|
directory. Further, you can select a project to move to an open project
|
|
|
|
|
or \uicontrol Projects to move to the directory specified in the
|
2022-06-27 12:12:54 +02:00
|
|
|
\uicontrol {Projects directory} field in \uicontrol Edit >
|
|
|
|
|
\uicontrol Preferences > \uicontrol {Build & Run} > \uicontrol General.
|
2021-04-08 12:30:30 +02:00
|
|
|
|
|
|
|
|
The file that is currently active in the editor determines which folder
|
2022-11-02 16:51:20 +01:00
|
|
|
to display in the \uicontrol {File System} view:
|
2021-04-08 12:30:30 +02:00
|
|
|
|
|
|
|
|
\list
|
|
|
|
|
\li \uicontrol Projects if the file is located in a subdirectory of the
|
|
|
|
|
\uicontrol {Projects directory}
|
|
|
|
|
\li \uicontrol Home if the file is located in the user's home directory
|
|
|
|
|
\li \uicontrol Computer in all other cases
|
|
|
|
|
\endlist
|
|
|
|
|
|
|
|
|
|
To stop the synchronization between the editor and the
|
2022-11-14 18:28:38 +01:00
|
|
|
\uicontrol {File System} view, deselect the \inlineimage icons/linkicon.png
|
2021-04-08 12:30:30 +02:00
|
|
|
(\uicontrol {Synchronize Root Directory with Editor}) button.
|
|
|
|
|
|
2022-11-02 16:51:20 +01:00
|
|
|
The view displays the path to the active file as bread crumbs. You can move
|
|
|
|
|
to any directory along the path by clicking it.
|
2021-04-08 12:30:30 +02:00
|
|
|
|
|
|
|
|
\section1 File System Context Menu
|
|
|
|
|
|
|
|
|
|
Use the context menu functions to:
|
|
|
|
|
|
|
|
|
|
\list
|
|
|
|
|
\li Open files with the default editor or some other editor.
|
|
|
|
|
\li Open a project located in the selected directory.
|
|
|
|
|
\li Show the file or directory in the file explorer.
|
|
|
|
|
\li Open a terminal window in the selected directory or in the directory
|
|
|
|
|
that contains the file. To specify the terminal to use on Linux and
|
2022-06-27 12:12:54 +02:00
|
|
|
\macos, select \uicontrol Edit > \uicontrol Preferences >
|
2021-04-08 12:30:30 +02:00
|
|
|
\uicontrol Environment > \uicontrol System.
|
|
|
|
|
\li Search from the selected directory.
|
2021-06-21 17:02:29 +02:00
|
|
|
\li View file properties, such as name, path, MIME type, default editor,
|
|
|
|
|
line endings, indentation, owner, size, last read and modified
|
|
|
|
|
dates, and permissions.
|
2021-04-08 12:30:30 +02:00
|
|
|
\li Create new files. For more information, see
|
2022-02-08 16:48:02 +01:00
|
|
|
\if defined(qtdesignstudio)
|
2021-04-08 12:30:30 +02:00
|
|
|
\l{Adding Files to Projects}.
|
2022-02-08 16:48:02 +01:00
|
|
|
\else
|
|
|
|
|
\l{Creating Files}.
|
|
|
|
|
\endif
|
2021-04-08 12:30:30 +02:00
|
|
|
\li Rename or remove existing files.
|
|
|
|
|
\li Create new folders.
|
|
|
|
|
\li Compare the selected file with the currently open file in the diff
|
|
|
|
|
editor. For more information, see \l{Comparing Files}.
|
|
|
|
|
\li Display the contents of a particular directory in the view.
|
|
|
|
|
\li Collapse all open folders.
|
|
|
|
|
\endlist
|
|
|
|
|
|
2021-11-04 17:09:50 +01:00
|
|
|
\section1 File System View Toolbar
|
2021-04-08 12:30:30 +02:00
|
|
|
|
2021-11-04 17:09:50 +01:00
|
|
|
\if defined(qtdesignstudio)
|
2021-04-08 12:30:30 +02:00
|
|
|
In the \uicontrol Edit and \uicontrol Debug mode, the
|
|
|
|
|
\uicontrol {File System} view is displayed in the \l{Working with Sidebars}
|
2021-11-04 17:09:50 +01:00
|
|
|
{sidebar}. It has a toolbar with additional options.
|
2021-04-08 12:30:30 +02:00
|
|
|
|
2022-11-24 09:29:50 +01:00
|
|
|
\image qtcreator-filesystem-view.webp "File System view in the sidebar"
|
2021-11-04 17:09:50 +01:00
|
|
|
\else
|
|
|
|
|
The toolbar in the \uicontrol {File System} view contains additional
|
|
|
|
|
options.
|
|
|
|
|
\endif
|
|
|
|
|
|
2021-04-08 12:30:30 +02:00
|
|
|
|
2021-12-09 11:21:39 +01:00
|
|
|
To manage view contents, select \inlineimage icons/filtericon.png
|
2021-04-08 12:30:30 +02:00
|
|
|
(\uicontrol Options):
|
|
|
|
|
|
|
|
|
|
\list
|
|
|
|
|
\li To hide the bread crumbs, deselect the
|
|
|
|
|
\uicontrol {Show Bread Crumbs} check box.
|
2022-11-02 16:51:20 +01:00
|
|
|
\li By default, the view separates folders from files and lists them
|
|
|
|
|
first. To list all items in alphabetic order, deselect the
|
2021-04-08 12:30:30 +02:00
|
|
|
\uicontrol {Show Folders on Top} check box.
|
|
|
|
|
\li To also show hidden files, select \uicontrol {Show Hidden Files}.
|
|
|
|
|
\endlist
|
|
|
|
|
|
2022-11-02 16:51:20 +01:00
|
|
|
To stop the synchronization with the file currently open in the
|
2021-12-09 11:21:39 +01:00
|
|
|
editor, deselect \inlineimage icons/linkicon.png
|
2021-04-08 12:30:30 +02:00
|
|
|
(\uicontrol {Synchronize with Editor}).
|
|
|
|
|
*/
|