Reveal current file in project sidebar pane in Qt Creator - qt-creator

After using Sublime Text for a while for work, I've found myself wanting this feature more and more in Qt Creator. For those that don't know, in Sublime there is an option to open the project tree to the current file called "Reveal in sidebar".
Is there a keyboard shortcut for Qt Creator that I'm missing here? Or is the functionality simply not there?
Thank you for any light you can shed on the situation!

Look at the toolbar in Qt Creator, above the "Project" tree. You'll see a little button with two overlapped ovals. This will sync the project tree with the current open file, and reveal wherever it is in the project hierarchy:

Related

How to add custom button to Visual Studio Output Window toolbar

I'm trying to build an extension to Visual Studio with a couple of custom commands. It is well documented how to add commands to VS Menu/Toolbars. There are also many samples how to add custom button to the Project Explorer Toolbar. The problem is that best (most suitable) toolbar for my command is those on the top of Output Window.
So, there are two questions:
Is it possible?
If yes then how to achieve this?
1) It is really possible. It looks like any toolbar and any menu could be extended by any command.
2) The method of extending is the same for all toolbars (and menu). What you need to know is toolbar's ID. ID could be found in file vsshlids.h placed in your installed VSSDK inc folder. For output window toolbar this ID is IDM_VS_TOOL_OUTPUTWINDOW.

Add an item in Finder's contextual menu with Cocoa

In Cocoa on Mac, I would like to add a menu item in the Finder's popup menu that comes when I right-click on a file or a folder, and having this item pointing to a function in my app.
How can I achieve this ?
Thanks !
A good place to start is CocoaDev: StandardService. It outlines what you are trying to accomplish and they give some source code to follow such as the MakingServices example.
2015 Update: As of Yosemite, Apple includes an extension called Finder Sync which allows you to accomplish most of what a Service used to do.
Best of luck.

QT Creator easier "contexthelp"

I just started using the QT Creator but there's some stuff that really annoys me...
I like that i can show the coding window and the context help window next to each other.
But the shortcut for showing the context help for the currently selected Symbol is F1, which is just terrible as Mac-User #_#
Now it would be nice if I could either put in on alt+"left mouse button".
What would be even better is, if i select a word with the mouse and it's a QT-Object like QSlider, to automatically change the content of the help window to the selected word.
Any help on that matter? :/
Yes, you can customise the Keyboard short-cuts in Qt Creator:
Open the Options dialog (on Windows, it's via Tools->Options - I presume it'll be somewhere different on a Mca)
In the Environment page, select the Keyboard tab.
Scroll down to the Help section, and change the setting on the Context command from F1 to whatever you want it to be.
This should go some way to making it easier for you to use.
Edit
If you want to make wider changes, you could always import a .kms QtCreator keyboard definitions file that someone else has created. For example, searching for 'qt creator kms' points to:
TextMate key mapping scheme for Qt Creator
XCode Keyboard Mapping for Qt Creator

Multiple editor windows in Xcode

When coding in Xcode, I double-click a file in the "Groups and files" list, and it opens a new editor window. I have several of these open at once.
Until today.
Today, when I double-click a file in the list, it opens the file in the last editor window I was using, meaning I can only have one editor window up at any one time.
I guess I've switched some option somewhere by mistake. How do I get it back to the way I like it?
I'm using Xcode 3.2.5
In the top right of the editing window is an icon that says "grouped", perhaps you clicked on it by accident.
Click on it so it says "ungrouped", and you'll be back to opening multiple windows.
perhaps preferences>General>Open Counterpart in same Editor

Is it possible to launch an external image editor from Textmate?

Is it possible to launch an external image editor from the TextMate project drawer? I suppose the same concept would apply to launching any external editor from TextMate. Right now, if I right-click on the image file, I only have an option to open in Preview or Finder.
Thanks!
Yes. There is an (official) TM Bundle that does what you want--it's called "ImageBrowser." I installed recently and i have used it only once. It seems to work fine for the purpose you mentioned in your Question; in particular, it finds images in your current project and displays them in an image browser that runs inside TextMate.
You can get it from the Macromates SVN Repository.
TextMate respects the Finder's (well, LauchService's) "Open with" choice for each file. Whichever program would open when you double-click the file in Finder will appear in TextMate's contextual menu. Simply change this through the Finder's Get Info window for the file in question to the editor of your choice, and TextMate will respect it. It's dynamically populated, so you don't need to restart TextMate.
As far as I know, there's no method to specify a secondary program beyond the default.
I think no is the answer, but like Matt said, explore the usage of the Services menu.

Resources