📜 ⬆️ ⬇️

A plugin that adds tabs to QtCreator


The article describes how to add tabs to QtCreator using an extension system (plug-in) that does not require modification of the source code of QtCreator itself.

When switching to using IDE QtCreator, the absence of the usual tabs for open files seems unusual. Over time, you get used to other means of navigating through the sources. QtCreator has at least six such products:

All these methods are indispensable when editing multiple files at the same time. When editing a small number of sources, the use of tabs, in my humble opinion, is more convenient. Tabs are also supported by their widespread use in implementing MDI (Multi Document Interface) in development environments, text editors, viewers, and browsers.

The topic of tabs was repeatedly raised on the forums. The developers even included the question “Why doesn't Qt Creator not use tabs for editors?” In the FAQ list. The following arguments are given in the answer to this question:

So that this plugin does not go against the ideology of QtCreator, I propose to immediately limit its scope: editing a small (up to 10) number of files. The plugin of course allows you to open a larger number of editors, but in this case it is still better to use the features of QtCreator listed at the beginning of the article.

Key Features:

The plugin is not without flaws:

PS Please take this small post as the announcement of another plug-in. I hope it will be useful to the Qt-programmers community.
')
References:

1. Project page on Sourceforge.net (currently not supported, for new versions of QtCreator, see link 2).
2. Fork developer Oleg Shparber on GitHub . Sources working in new versions of the plug-in should be found there.

To install the plugin, the contents of the archive must be unpacked into the directory where the plugins are located:
for Windows, typically C: \ Qt \ Tools \ QtCreator \ lib \ qtcreator \ plugins.
for Lunux-based systems /home/username/Qt5.2.0/Tools/QtCreator/lib/qtcreator/plugins when installing Qt in the user directory. Or (as an option) /opt/Qt5.2.0/Tools/QtCreator/lib/qtcreator/plugins (installed on Ubuntu).
for Mac OS X / Applications / Qt Creator.app/Contents/PlugIns

Source: https://habr.com/ru/post/215107/


All Articles