# Select entire section in Texstudio

I am using Texstudio 2.11.0 on Arch-Linux machine. I want to know if there are any keyboard shortcut keys to

1) select entire sections/subsections?

I could not find any in the 'Configure Texstudio' menu of the IDE.

Thanks

• 1) just in left of (sub)section title you find a trinagle click on and your section will be reduced to one line (the title) you can click again back to normal mode 2) the strecture panal in the left – touhami Jul 14 '16 at 10:03
• Ya, but that is too clumsy as I have to use mouse a lot of times. – Abhinav Jul 14 '16 at 16:49
• You can do this through java scripts: menu > Macros > Edit Macros. They have default shortcuts (can be changed). For 2) there's a user script available (you can change a couple of keywords to search backwards). For 1) you'll have to make your own script, the mentioned script gives you some clues (just keep moving the cursor keeping the anchor until you find an equal or higher ranking sectioning command (or \end{document}). – alwaysask Jul 14 '16 at 22:54
• @alwaysask thanks for the hints. I am new to writing macros so 1) Can you give me link to how I can first implement the already written user script for job-2. 2) Then i'll try to write script for job-1 – Abhinav Jul 15 '16 at 13:14
• Please see the manual, section 4.5.3 texstudio.sourceforge.net/manual/current/… Just copy/paste the script, give it a name, make sure it starts with %SCRIPT and the radio button will shift to "Script". – alwaysask Jul 15 '16 at 13:22