Get a list of open documents in Qt Creator - qt-creator

Is there a way to get a list of open documents in Qt Creator.
Sometimes when Qt Creator crashes and is unable to restore the session when reopened, its handy to have a list of open files before it crashed.

Not sure if this is what you are looking for, but using QtCreator 4.15.2, from the "Projects" pane (default left panel), there is an option to "Split" (4th icon) with a selection for "Open Documents". This then creates a panel (below) that shows the open documents.

Why do you need that list?
Conceptionally all files in for project are open once you open the project. The open document list is just a history of recently visited documents.
I find it way simpler to just jump to the classes/methods/files/lines/help I care for (using ctrl-K -- if you are not using that key combo, you are missing the best thing in creator!). That way I do not need to keep remembering what is in which files.

Related

How to enable visual studio find results window with "advanced features"?

Please refer to this for the 2 types of Find results window I've encountered in VS2019 using the Quick find feature (or the default Ctrl+F).
The first image is a window that seems advanced, in that it has grouping of the results (by project, by file), it has other options like the Keep results, and List view toggles, etc etc.
The second image on the other hand is a really plain results list, without the options/features of the first one.
For the first window, I don't remember anymore how I've done it (I've started using VS2019 early last year), and for the succeeding VS installations, I'm only using this with a settings file exported from VS.
For the second window, I tried to reset VS settings (Tools → Import and Export Settings) and selected C#, and when I use quick find and see its results, it is this kind of find results window that is shown.
I really want to reset VS settings, but I cannot lose the features provided by the first Find result window.
Question: How to enable that window?
Sub question if I may - the reason I want to reset VS settings is that changes I make in Text Editor → C# → Code Style does not take effect and is reset (I make the changes, press OK button, open the options window again, and the values are reverted - even after restarting VS). What may have caused this behavior?
VS Version: Enterprise 2019, 16.6.5
It took me some time to figure out. There isn't a Find Result Window 1 and 2 anymore. After you perform a search, in the "Find" results pane, there is a "Keep Results" button. Click this button to lock the pane so that the next time you search, it will create a new "Find" results pane and keep the locked pane visible.
Tools > Options > Environment > Preview Features > Check "Use Previous Find in Files"
Ctrl+Shift+F > Open Result options > Select "Find results table"
Close the Find and Replace tool window and revert the aforementioned "Use Previous Find in Files" setting (optional)
Perform a search (either Find in Files or simply through the standard Ctrl+F find prompt)
Your results will then appear in the advanced tabular "Find results table" window.
Presumably this setting is also found elsewhere but I haven't been able to find it without turning off the Find in Files preview feature.

How do I Goto Anything (across all "projects" or windows) in Sublime Text?

aka: How can I find a tab in another window in Sublime?
In Sublime, the feature called Goto Anything (⌘+P, ⌘+T, Win: ⌃+P, etc.) searches through a list of open files/tabs, or any files (and more) but only in your current project/focused window :( I understand why it works that way but it's not super useful for having a bunch of random files open.
I'm currently using Sublime on my home computer (Mac) where I have 3 or 4 windows open (not technically projects, but Sublime seems to associate the two conceptually) each with 1-5 tabs. It's often difficult to find a tab I was using for a quick note (eg. groceries) because right-clicking the app icon in the dock only shows the active tab per window. If "groceries" was in a window and wasn't the last viewed tab when I went to another Sublime window, it's effectively lost, and I've got to start going through each one of my Sublime windows to find it.
I've also tried the Find in Files... feature (⇧+⌘+F) with <open files> in the Where field thinking I'd just search for something in the file (eg. eggs) but "open files" really means "open files in this project/window"...same scope limitation.
I've even looked for a plugins that might help but "Goto absolutely everything" is a concept that's hard to search for. I've been wanting to try writing my own so I'd be grateful for a Python solution as well!
I realize this is a somewhat old thread, and you may have already come up with a solution. While there is no way that I know of to do a search or goto anything across all windows, I developed a Sublime Text plugin that allows you to jump between windows using command+shift+o on Mac OS X.
You can install it from package control:https://packagecontrol.io/packages/GotoWindow

How to force folder refresh in Sublime, when "Project > refresh" doesn't work?

Especially when using an sftp drive (but this problem is also an issue with local drives, although thankfully not as frequent), the folders in the sidebar just keep spinning and spinning, and the "Open Anything" dialog therefore has no files to choose from.
"Project > Refresh folders" does not work in most cases.
I've resorted to restarting Sublime manually, which works most of the time, but it's getting to be a pain to have to do this every other time I switch projects.
Is there any better way to "force" the folders to refresh?
This problem is the reason I asked this question:
How to save project state before exiting in ST3 on Windows?
The SublimeRestart plugin doesn't work on Windows until this project-state-saving problem is solved. However, even if it did work perfectly, it would still only be a workaround for this really annoying non-refreshing-folders issue.
My workaround on Windows, FYI: After loading a project, when the folders don't refresh (don't load even the first time), I have ctrl+f10 bound to "File > Exit", and f10 configured into the shortcut that I launch Sublime Text with. So two reasonably-quick (although additional!) button presses.
Open Sublime Text.
Select Preferences from the top menu and click Key Bindings – User. Here you will see a JSON file that should contain an array of objects (initially the array is empty). Every object will represent a shortcut.
Add the following (new shortcut object) entry into the array (between the brackets):
{
"keys" : ["f5"],
"command" : "refresh_folder_list"
}
You should be able to refresh the folders with F5.
Try to Install this package:
https://packagecontrol.io/packages/SideBarEnhancements
Open the package folder. Main menu -> Preferences -> Package Control: -> Package Control: Install Package
Search the keyword: Side​Bar​Enhancements
Enjoy it
After you install this plugin, you will see the refresh button in your sidebar option:
I have added this myself the other day. I constantly work in an environment where files in the project are changing before I can see them.
Goto 'Preferences' menu -> 'Key Bindings' -> 'User' which will open a JSON file, add below code, save and close that file.
{ "keys": ["ctrl+f5"], "command": "refresh_folder_list" }
It will work like charm 100%. Thanks for asking this question.
This isn't going to be a very useful answer but it documents some early behaviour in Sublime Text that would solve your problem, assuming you need no later features from Sublime Text 2/3 (a big assumption indeed).
Sublime Text 1 had the handy feature in the folder context menu to "Refresh folder". This cause an immediate indexing of only the specified directory (and subdirectories) which was a boon when using networked drives over high-latency connections.
This was deprecated in Sublime Text 2.
Version 1 is available here or by direct download here. It's not clear that these will be available indefinitely though, so this isn't necessarily a long-term solution.

Can I get VS2010 to look at VSS when I click Open Project?

My VS2010 environment has the start page come up if I'm not opening a solution. From there, I can open one of the several items on the recent projects list or I can open a project from the link/button in the upper left. When I do that, I get an Open Project dialog that's pointed at my C:\workingvss (which is a convention that everyone on my team follows for where our code lives locally). But I virtually always want to browse to the project in a VSS database and I have to scroll up in the left-hand pane of the dialog to bring 'Microsoft Visual SourceSafe' into visibility. It seems dumb that I can't make it just start at the top of the pane, but if there's a way, I haven't been able to figure out how.
So I'm turning to you. Is there something I can do to avoid this click and drag every time I want to open a project?
I realize it's defaulting to the Projects location parameter set through Tools > Options > Projects and Solutions > General. But I think I need to leave that as is because I do want my stuff saved to that location during checkout.
I also think that if I removed ten (in my case) folders from the root of my C:, the left pane would show my VSS option, but I don't think that's even possible in this machine's case and not a reasonable solution in any case.
My question is related to, but not a duplicate of, How to change the default open file dialog path.
Thanks for your time!
This isn't a great answer, but it's my current no-tech work-around. If I make the Open Project dialog large enough to accommodate all of the lines it wants to display, then my VSS line is visible and I don't have to navigate to it. Luckily, Visual Studio remembers the size from use to use.

Visual Studio: quick access to most used files

The solution I work on is quite big so it can require a lot of clicks to get to the desired file. I spend 90% of the time working with 8-10 files from this solution so it would be really convenient to have some kind of "Favorites" in my solution so I could jump to the most used files quickly. "Recent files" doesn't cut it, so maybe you know some extensions for VS2010 that do that? Google didn't provide any good options so I decided to give it a shot here and ask what do you use.
Thanks in advance
It's not quite what you asked for, but it'll help endlessly:
In vanilla VS2010, hit Ctrl-Comma (by default) for the "Navigate To" window. You can type a partial file, class or method name and it'll show you a list of where that appears in your solution, and you can open directly from there.
The DevExpress plugins also have a "Recently Used File" window (Ctrl-Shift-Period by default, I think) that does similar, but only shows files you've recently used (not classes or methods). I have to say, though, I've not used that since I've had VS2010.
Wow! A question since 2011 that is still valid to date.
From View Menu click Bookmark Window
open your favorite file
click any line - preferably the beginning of the file
from the Bookmarks Window, click the icon "Toggle a bookmark on the current line."
Very convenient!
Haven't tried this particular feature of the PowerTools myself, but it could do the trick:
http://blogs.msdn.com/b/visualstudio/archive/2010/08/03/quick-access-extension.aspx

Resources