Jump to content
Mike Torrettinni

Unit scope names in IDE - possible 2+ lines?

Recommended Posts

I really like the unit scope naming, it organizes source files, I can much quicker find needed unit... but the annoying thing is how IDE is handling these long named units. Here is example of MARS project and how only a few units are shown without scrolling:

 

image.thumb.png.b9830c51795f88fed5d84d063b763096.png

 

Is it possible for IDE to show all opened units in multiple lines (2+) if not all units fit into 1 line?

 

Edited by Mike Torrettinni

Share this post


Link to post

Have you tried using keyboard shortcuts to display a dropdown menu with a list of all open modules (Ctrl + Alt + F12) or the DelphiCtrlTab plugin?

  • Like 1

Share this post


Link to post

Ctrl + Alt + F12 starts the Intel graphics settings for me :classic_biggrin:
But the far right in row, there is a down arrow to display the entire list.

Edited by Stano
  • Like 3

Share this post


Link to post
4 minutes ago, Stano said:

Ctrl + Alt + F12 starts the Intel graphics settings for me :classic_biggrin:
But in the far right row, there is a down arrow to display the entire list.

I think you can remove this keyboard shortcut or reassign to something else in the Intel Graphics settings (unless, of course, you do not use it that often) 🙂

Edited by Dinar
  • Thanks 1

Share this post


Link to post

I can know why. The list is arranged alphabetically. Orientation is fast.

Share this post


Link to post
6 minutes ago, Mike Torrettinni said:

Useful, but not really helpful for this case.

This allows you to view the list of open units and switch between them. What other benefits does the opened units line give you?

The only thing that comes to my mind right now is to change the order of the units in this line 🤔

Share this post


Link to post
8 minutes ago, Dinar said:

 What other benefits does the opened units line give you? 

Well, if there were 2 lines so you can see all opened units, it's a very quick mouse move and click to show that wanted unit. Every other option involves scrolling or opening a list (or a DelphiCtrlTab view) and select unit, no comparable at all.

Share this post


Link to post

I found example in Visual studio, even thought it looks bad, when you need to have all these units opened, you are working with them and you want to be able to switch fast between them:

 

image.thumb.png.4e6cef5946b870ed378d7cc3959900b3.png

 

That would be nice to have option in Delphi IDE.

Share this post


Link to post

Hello Dinar,

You are correct that RRUZ and dummzeuch are both "experts in the expert area" :D,  Plus @David Hoyle, except me :D

 

All I know is that CN Pack can turn the editor tabs into multi-line mode, exactly like the VS screenshot Mike posted , but unfortunately, that's for D7 and bellow only.

Share this post


Link to post
2 minutes ago, Attila Kovacs said:

As an alternative: 

 

This is one of the first options I proposed 🙂

17 hours ago, Dinar said:

Have you tried using keyboard shortcuts to display a dropdown menu with a list of all open modules (Ctrl + Alt + F12) or the DelphiCtrlTab plugin?

 

  • Like 1

Share this post


Link to post

There is also that little drop down at the right end of the unit tabs.

image.thumb.png.7da142b46cbf74cceadd6b4ed25c2016.png

 

Otherwise, Ctrl+F12 is nice as well.

image.png.50956a5e14042b764bf90052f64066f5.png

  • Like 1

Share this post


Link to post
5 minutes ago, Lars Fosdal said:

There is also that little drop down at the right end of the unit tabs.

 

@Dinar It's not just me! 😉

 

 

 

19 hours ago, Stano said:

Ctrl + Alt + F12 starts the Intel graphics settings for me :classic_biggrin:

Well, then just press Ctrl+Alt+ArrowUp or Down 😉

 

  • Haha 2

Share this post


Link to post
20 hours ago, Dinar said:

I think you can remove this keyboard shortcut or reassign to something else in the Intel Graphics settings (unless, of course, you do not use it that often) 🙂

I didn't know that shortcut, but for me it also woke up the Intel gfx settings.  As you said, you can disable the hotkeys in that app - and suddenly, Ctrl+Alt+F12 drops down the opened unit list.  Thanks, man!

Share this post


Link to post
23 minutes ago, Lars Fosdal said:

There is also that little drop down at the right end of the unit tabs.

image.thumb.png.7da142b46cbf74cceadd6b4ed25c2016.png

 

Otherwise, Ctrl+F12 is nice as well.

image.png.50956a5e14042b764bf90052f64066f5.png

I know about the drop-down list, but didn't know about Ctrl+F12. Even though I have project manage opened almost non-stop, once the number of units is high, this Ctrl+F12 could be useful.

Share this post


Link to post
2 hours ago, Attila Kovacs said:

As an alternative: 

 

I did look at the CtrlTab plugin at the beginning, when it was released, but didn't really find it useful. Testing now for a little bit and I do see it being useful. 🙂

Share this post


Link to post
56 minutes ago, Mike Torrettinni said:

I did look at the CtrlTab plugin at the beginning, when it was released, but didn't really find it useful. Testing now for a little bit and I do see it being useful. 🙂

It would be interesting to also try a modified version of this plugin from @Attila Kovacs
I hope that he will share with us the result of his labors 🙄🙂

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×