Python Script Editor - Keyboard Shortcuts? - Grasshopper2024-03-28T16:35:55Zhttps://www.grasshopper3d.com/forum/topics/grasshopper-python-script-editor-keyboard-shortcuts?feed=yes&xn_auth=noHi Huang,Thank you for the ex…tag:www.grasshopper3d.com,2020-05-16:2985220:Comment:20667142020-05-16T09:48:11.489Zdjordjehttps://www.grasshopper3d.com/profile/djordje
<p>Hi Huang,<br/>Thank you for the explanation!</p>
<p></p>
<p>Hi Huang,<br/>Thank you for the explanation!</p>
<p></p> Tab indents 4 spaces and shif…tag:www.grasshopper3d.com,2020-05-15:2985220:Comment:20662042020-05-15T02:52:11.302ZRobert Jason Crosshttps://www.grasshopper3d.com/profile/RobertJasonCross
<p>Tab indents 4 spaces and shift + tab removes an indent</p>
<p>Tab indents 4 spaces and shift + tab removes an indent</p> I just tried them out randoml…tag:www.grasshopper3d.com,2020-03-04:2985220:Comment:20482162020-03-04T13:32:47.201ZYijiang Huanghttps://www.grasshopper3d.com/profile/YijiangHuang
<p>I just tried them out randomly... I was using visual studio quite a lot back in the day and these key bindings persist until this day: <a href="https://docs.microsoft.com/en-us/visualstudio/ide/default-keyboard-shortcuts-in-visual-studio?view=vs-2019">https://docs.microsoft.com/en-us/visualstudio/ide/default-keyboard-shortcuts-in-visual-studio?view=vs-2019</a></p>
<p></p>
<p>The Ctrl + / key bind is a "natural" thing to try out since they are quite universal as a default across many text…</p>
<p>I just tried them out randomly... I was using visual studio quite a lot back in the day and these key bindings persist until this day: <a href="https://docs.microsoft.com/en-us/visualstudio/ide/default-keyboard-shortcuts-in-visual-studio?view=vs-2019">https://docs.microsoft.com/en-us/visualstudio/ide/default-keyboard-shortcuts-in-visual-studio?view=vs-2019</a></p>
<p></p>
<p>The Ctrl + / key bind is a "natural" thing to try out since they are quite universal as a default across many text editors (Sublime, Notepad++, VScode, etc.)</p> I agree with Anders. Quite a…tag:www.grasshopper3d.com,2020-03-04:2985220:Comment:20480692020-03-04T07:02:31.800Zdjordjehttps://www.grasshopper3d.com/profile/djordje
<p>I agree with Anders. Quite a nice find!<br/>Really, how did you find out this Yijiang?</p>
<p>I agree with Anders. Quite a nice find!<br/>Really, how did you find out this Yijiang?</p> Nice find Yijiang! I usually…tag:www.grasshopper3d.com,2016-11-16:2985220:Comment:16404372016-11-16T08:55:22.664ZAnders Holden Deleuranhttps://www.grasshopper3d.com/profile/AndersHoldenDeleuran
<p>Nice find Yijiang! I usually just wrap everything in triple block quotes, but this is definitely faster for quickly commenting something out. Too bad it won't work with Scandinavian keyboards that do not have a numeric keypad (/ is the shift mode of the 7 key). How did you figure this out if I may ask? Wonder if there are more hidden shortcuts yet to be discovered :)</p>
<p>Nice find Yijiang! I usually just wrap everything in triple block quotes, but this is definitely faster for quickly commenting something out. Too bad it won't work with Scandinavian keyboards that do not have a numeric keypad (/ is the shift mode of the 7 key). How did you figure this out if I may ask? Wonder if there are more hidden shortcuts yet to be discovered :)</p> One thing to add up...
I jus…tag:www.grasshopper3d.com,2016-11-16:2985220:Comment:16401692016-11-16T02:49:14.338ZYijiang Huanghttps://www.grasshopper3d.com/profile/YijiangHuang
<p>One thing to add up...</p>
<p></p>
<p>I just find [CTRL + /] stand for comment (uncomment) code...</p>
<p></p>
<p>A reminder for someone who is also struggling on this problem...</p>
<p></p>
<p>But for C# script component:</p>
<p>we have the similar shortcut configuration in Visual Studio (:))</p>
<p>[ctrl K + ctrl C] for comment</p>
<p>and</p>
<p>[ctrl K + ctrl U] for uncomment</p>
<p>One thing to add up...</p>
<p></p>
<p>I just find [CTRL + /] stand for comment (uncomment) code...</p>
<p></p>
<p>A reminder for someone who is also struggling on this problem...</p>
<p></p>
<p>But for C# script component:</p>
<p>we have the similar shortcut configuration in Visual Studio (:))</p>
<p>[ctrl K + ctrl C] for comment</p>
<p>and</p>
<p>[ctrl K + ctrl U] for uncomment</p> Just piggybacking my own thre…tag:www.grasshopper3d.com,2012-09-13:2985220:Comment:6822762012-09-13T12:15:08.710ZAnders Holden Deleuranhttps://www.grasshopper3d.com/profile/AndersHoldenDeleuran
<p>Just piggybacking my own thread with a further request for the Python script editor. It would be great if one could "collapse" or "close" all the functions and classes within a script (equivalent to hitting all those little minus signs in boxes) using a button or keyboard shortcut:<br></br><br></br><a href="http://storage.ning.com/topology/rest/1.0/file/get/2768754381?profile=original" target="_self"><img class="align-full" src="http://storage.ning.com/topology/rest/1.0/file/get/2768754381?profile=RESIZE_1024x1024" width="721"></img></a> I guess you (Giulio) is not in charge of developing the Python component any more, but…</p>
<p>Just piggybacking my own thread with a further request for the Python script editor. It would be great if one could "collapse" or "close" all the functions and classes within a script (equivalent to hitting all those little minus signs in boxes) using a button or keyboard shortcut:<br/><br/><a href="http://storage.ning.com/topology/rest/1.0/file/get/2768754381?profile=original" target="_self"><img width="721" src="http://storage.ning.com/topology/rest/1.0/file/get/2768754381?profile=RESIZE_1024x1024" width="721" class="align-full"/></a>I guess you (Giulio) is not in charge of developing the Python component any more, but perhaps Steve (or whomever is developing it now) is listening in.</p>
<p><strong>Edit: </strong>Added a wish on the McNeel GitHub: <a href="https://github.com/mcneel/ghpython/issues/45">https://github.com/mcneel/ghpython/issues/45</a></p>
<p></p> That's most excellent Giulio,…tag:www.grasshopper3d.com,2012-05-31:2985220:Comment:6085262012-05-31T07:54:29.173ZAnders Holden Deleuranhttps://www.grasshopper3d.com/profile/AndersHoldenDeleuran
<p>That's most excellent Giulio, much appreciated! Looking forward to the next release.</p>
<p>Best,</p>
<p>Anders</p>
<p>That's most excellent Giulio, much appreciated! Looking forward to the next release.</p>
<p>Best,</p>
<p>Anders</p> Done. The next release will a…tag:www.grasshopper3d.com,2012-05-30:2985220:Comment:6079302012-05-30T17:10:57.104ZGiulio Piacentinohttps://www.grasshopper3d.com/profile/GiulioPiacentino
<p>Done. The next release will allow to use F5 to Test and Ctrl+F5 for Apply&Close.</p>
<p>Thank you for reporting this wish.</p>
<p>- Giulio<br/>________________<br/>giulio@mcneel.com</p>
<p>Done. The next release will allow to use F5 to Test and Ctrl+F5 for Apply&Close.</p>
<p>Thank you for reporting this wish.</p>
<p>- Giulio<br/>________________<br/>giulio@mcneel.com</p> Hi Anders,
I'm studying this.…tag:www.grasshopper3d.com,2012-05-30:2985220:Comment:6076912012-05-30T14:17:57.656ZGiulio Piacentinohttps://www.grasshopper3d.com/profile/GiulioPiacentino
<p>Hi Anders,</p>
<p>I'm studying this. I'll let you know more in a little.</p>
<p>Thanks,</p>
<p>- Giulio<br/>________________<br/>giulio@mcneel.com</p>
<p>Hi Anders,</p>
<p>I'm studying this. I'll let you know more in a little.</p>
<p>Thanks,</p>
<p>- Giulio<br/>________________<br/>giulio@mcneel.com</p>