cancel
Showing results for 
Search instead for 
Did you mean: 

Linked Files

RLein.1
Associate III

I'm working on a project that will be using shared code files from outside the project.  I do not want to copy them, instead I want to link to them.  I discovered how to do this and it works well.  Since I don't want to make any changes to any of the linked files, I would like for the IDE to somehow make easy for me to know that the file I am currently viewing is a linked file.  I have not been able to find a way to do this with CubeIDE.  Does anyone know of a way?  Thanks

11 REPLIES 11
Pavel A.
Evangelist III

I would like for the IDE to somehow make easy for me to know that the file I am currently viewing is a linked file. 

The IDE indicates linked files by small arrow overlays on the icons:

PavelA_0-1743330856871.png

The resolved location of linked file can be seen in Properties-> resource.

 

Thanks for replying Pavel.  Unfortunately, my IDE is not showing the yellow: 

RLein1_0-1743445913059.png

I'm using revision 1.18.0 of the IDE.

@Pavel A.  was highlighting the little squares with the arrow pointing to the upper left corner.

 

KarlYamashita_0-1743446418460.png

 

Don't worry, I won't byte.
TimerCallback tutorial! | UART and DMA Idle tutorial!

If you find my solution useful, please click the Accept as Solution so others see the solution.

Thanks Karl.  Got it.

That helps.  Is there anyway to flag the editing window?  The tree structure doesn't track the currently open file in the editing window.

RLein1_0-1743449930819.png

 

Not sure what you mean by flag editing window?

 

You should accept @Pavel A. solution as he originally pointed out the link icons.

Don't worry, I won't byte.
TimerCallback tutorial! | UART and DMA Idle tutorial!

If you find my solution useful, please click the Accept as Solution so others see the solution.
Pavel A.
Evangelist III

To find the active file in the editor in the Project manager view: right click anywhere in the editor, Show in -> Project explorer.

Show in -> System explorer will open the Windows explorer (or Nautilus, etc. in Linux) and focus on the file on the disk.

 

Look again at the screenshot in my last post.  While the instance of HAL_cli.c has a small arrow overlay. The icon in the tab of the editing window does not.

Here is another example screenshot: 

RLein1_1-1743539235289.png

I placed a red box around the tab in question.  If the icon there also had this small arrow overlay I think that would be adequate for helping a developer realize the file they are editing is a linked file.

I added Kudos to your's and Pavel's comments. I did not click on "Accept as Solution" for Pavel since I see it as only a partial solution.  Is that acceptable etiquette? 

 

 Is that acceptable etiquette? 

Yes definitely. No issues with it. You're welcome.

The icon in the tab of the editing window does not.

Well, this is a more specific and actionable feature request. 

The correct term for these overlay icons in Eclipse is "Label decorators". So - "show the label decorators on the icons of editor tabs".

 

Thank you Pavel,

This was exploratory on my part.  You've helped see what is available.  How do I go about requesting adding the label decorators to the icons of the editor tabs?  Does it need to start with Eclipse?