Developer Portal Community

    cancel
    Showing results for 
    Search instead for 
    Did you mean: 

    TwinCAT3 collaps only to folders

    TwinCAT3 collaps only to folders

    mrb2fe
    New Poster

    If you work a lot inside TwinCAT3, in the solution explorer window a lot of folders will be expanded to see step chains, structures,  and so on.

    At some time it is getting extremly annoying scrolling through all of the trees. So there's is no overwiev at all left in the solution explorer window at all, especially for big projects.

    So my question is, how can I get an ovewiew again in this way that all expanded folders which have structs or chains directly under this folder will be collapsed? See picture below

    Or is there another solution ?

    Thanks a lot.

    Thats the way it should look after collapsing.

    TC3Tree.jpg

    4 REPLIES 4

    nexidator
    Community Moderator
    Community Moderator

    I don't think there is such a functionality. The only possibility I know of is this button:

    nexidator_0-1637746486595.png

    But this collapses everything up to the project, so you need some clicks to get back to the "interesting" places.

    MarvinW
    Long-established Member

    I know the pain that you are talking about. What I found is that the problem comes from TwinCAT automatically expanding the solution tree items too much when jumping around many files, especially when you are using the Search function or something like F12/Shift+F12 (Cross referencing).

    To avoid this problem, I deactivated this setting:

    MarvinW_0-1637816017043.png

    This greatly helped me to remove the visual clutter. You may want to try disabling it, if you currently have it enabled. The downside is that it may sometimes be difficult to find where exactly something is actually in the solution explorer, but I rarely need to know this actually in a well-sorted project.

    TommyF
    Member

    For big projekt the filter is a possible way to get a better overview

    TommyF_0-1638179343702.png

     

    SteffenR-
    Community Moderator
    Community Moderator

    I'd like to add a few more "solutions" to the problem:

    1. With the keyboard key "" you can collapse the current folder. For me it works good using the arrow keys "up/down" and collapsing with "left".
    2. "Track active item" (@MarvinW) is not set by default, but during the training it is recommended and set. I think it helps beginners in the orientation because then the selection in the solution explorer and the open document are the same.
      If you deactivate this option you have to read the name of the open document carefully and ignore the selection in the solution explorer:
      SteffenR_1-1638370795058.png

      If you deactivate "track active item" I recommend you one of the following options:

      1. Open Tools > Options in the menu bar and choose a shortcut for "View.TrackActivityinSolutionExplorer", for example with shortcut CTRL+T.
        Everytime you press the shortcut, the currently open document will be selected in the solution explorer. So instead of the automatical selection you can choose when the solution explorer follows your open documents.
        SteffenR_3-1638371171434.png
      2. Activate the button "Preview Selected Item" in the solution explorer. It opens the documents (methods, FBs, ...) with just one click on the right side:
        SteffenR_2-1638371004651.png

         

    Icon--AD-black-48x48Icon--address-consumer-data-black-48x48Icon--appointment-black-48x48Icon--back-left-black-48x48Icon--calendar-black-48x48Icon--center-alignedIcon--Checkbox-checkIcon--clock-black-48x48Icon--close-black-48x48Icon--compare-black-48x48Icon--confirmation-black-48x48Icon--dealer-details-black-48x48Icon--delete-black-48x48Icon--delivery-black-48x48Icon--down-black-48x48Icon--download-black-48x48Ic-OverlayAlertIcon--externallink-black-48x48Icon-Filledforward-right_adjustedIcon--grid-view-black-48x48IC_gd_Check-Circle170821_Icons_Community170823_Bosch_Icons170823_Bosch_Icons170821_Icons_CommunityIC-logout170821_Icons_Community170825_Bosch_Icons170821_Icons_CommunityIC-shopping-cart2170821_Icons_CommunityIC-upIC_UserIcon--imageIcon--info-i-black-48x48Icon--left-alignedIcon--Less-minimize-black-48x48Icon-FilledIcon--List-Check-grennIcon--List-Check-blackIcon--List-Cross-blackIcon--list-view-mobile-black-48x48Icon--list-view-black-48x48Icon--More-Maximize-black-48x48Icon--my-product-black-48x48Icon--newsletter-black-48x48Icon--payment-black-48x48Icon--print-black-48x48Icon--promotion-black-48x48Icon--registration-black-48x48Icon--Reset-black-48x48Icon--right-alignedshare-circle1Icon--share-black-48x48Icon--shopping-bag-black-48x48Icon-shopping-cartIcon--start-play-black-48x48Icon--store-locator-black-48x48Ic-OverlayAlertIcon--summary-black-48x48tumblrIcon-FilledvineIc-OverlayAlertwhishlist