Spock123 Posted November 8, 2014 Share Posted November 8, 2014 Hi 1) When a file is opened in SciTE then all code is unfolded, even it was stored folded. Is there any possibility to avoid this ? 2) Is there any tool or hotkey to fold/unfold all ? Thanks Link to comment Share on other sites More sharing options...
Exit Posted November 8, 2014 Share Posted November 8, 2014 (edited) Alt -> v -> a ?? Alt -> v -> c ?? My folding keeps over restart in the newest SciTE4AutoIt. Ver. 3.4.4 Jul 13 2014 20:07:38 I made a shortcut (F9) for toogle all in the user options: # http://www.scintilla.org/CommandValues.html user.shortcuts=\ F4|IDM_STOPEXECUTE|\ F9|IDM_TOGGLE_FOLDALL| Edited November 8, 2014 by Exit App: Au3toCmd UDF: _SingleScript() Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted November 8, 2014 Moderators Share Posted November 8, 2014 Spock123,Welcome to the AutoIt forums. Add this line to your SciTEUser properties (open it via <Options - Open User Options File>):fold.on.open=1Now your scripts will open folded. M23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area Link to comment Share on other sites More sharing options...
Spock123 Posted November 8, 2014 Author Share Posted November 8, 2014 Thanks a lot to all ! There are so much features in this great program. So I didn't realise the fold-toggle in "View". Sorry. Link to comment Share on other sites More sharing options...
Spock123 Posted November 9, 2014 Author Share Posted November 9, 2014 An additional question: Is there any option to open a file in the same folding situation as it was stored ? Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted November 11, 2014 Moderators Share Posted November 11, 2014 (edited) Spock123,Sorry, only just noticed the follow-up question. Unfortunately I believe it is all-or-nothing as far as fold-on-open is concerned - sorry. >M23Edit: See below for the solution. Edited November 11, 2014 by Melba23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area Link to comment Share on other sites More sharing options...
jaberwacky Posted November 11, 2014 Share Posted November 11, 2014 I think "session.folds=1" might do what you want. This setting causes the folds to be saved in a session file. Helpful Posts and Websites: AutoIt3 Variables and Function Parameters MHz | AutoIt Wiki | Using the GUIToolTip UDF BrewManNH | Can't find what you're looking for on the Forum? Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted November 11, 2014 Moderators Share Posted November 11, 2014 jaberwacky,As long as you remember to save the session itself. M23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area Link to comment Share on other sites More sharing options...
jaberwacky Posted November 11, 2014 Share Posted November 11, 2014 I use "save.recent=1" to do it for me. Helpful Posts and Websites: AutoIt3 Variables and Function Parameters MHz | AutoIt Wiki | Using the GUIToolTip UDF BrewManNH | Can't find what you're looking for on the Forum? Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted November 11, 2014 Moderators Share Posted November 11, 2014 jaberwacky,Thanks for the pointer - always something new to learn. M23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area Link to comment Share on other sites More sharing options...
Exit Posted November 11, 2014 Share Posted November 11, 2014 (edited) Just checked my Global.Properties file and found, that all those values are default. fold.on.open=0 session.folds=1 save.recent=1 So, the behaviour to remember folding is default. Edit: Typo Edited November 11, 2014 by Exit App: Au3toCmd UDF: _SingleScript() Link to comment Share on other sites More sharing options...
jaberwacky Posted November 12, 2014 Share Posted November 12, 2014 ::Heh:: yeah it sure is huh? Oh well. Helpful Posts and Websites: AutoIt3 Variables and Function Parameters MHz | AutoIt Wiki | Using the GUIToolTip UDF BrewManNH | Can't find what you're looking for on the Forum? Link to comment Share on other sites More sharing options...
NassauSky Posted June 10 Share Posted June 10 (edited) I don't think I needed to create a new topic 10 years later but just an FYI. I've been struggling over this for a while and just accepting how I thought it worked. For anyone interested who might have missed it in the documentation. I really like using #Regions to organize my code so now I found a trick when I have multiple functions in a single region open in Scite: The trick I recently learned is to Ctrl+Click the #Region as you fold it to keep the children folded. This way when you can just Click to unfold the #Region and it will leave the child functions folded. Edited June 27 by NassauSky Cleaned up the verbiage a little argumentum 1 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now