Wchris Posted November 15, 2011 Share Posted November 15, 2011 ability to comment/uncomment a selected group of lines in the script editor. I'm pretty sure i'm not the only one that often comment/uncomment lines when testing. This feature competes in the category "less than 5 minutes to add ) Quote Windows 7 home - 32 bits Intel Quad Q6600 - nVidia GTX 460 1GB - 2 GB RAM Link to comment Share on other sites More sharing options...
Josh Posted November 15, 2011 Share Posted November 15, 2011 It's done like this in Lua: test --[[ test test test ]]-- test Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
klepto2 Posted November 16, 2011 Share Posted November 16, 2011 It's done like this in Lua: test --[[ test test test ]]-- test I doubt he means this I more believe he means a 2 menu items (toolbox and contextmenu) where you can comment/uncomment a bunch of code with just one click. Take a look at Visual Studio where this feature is embedded. (Blide has it as well, also most other IDEs). Quote Windows 10 Pro 64-Bit-Version NVIDIA Geforce 1080 TI Link to comment Share on other sites More sharing options...
Wchris Posted November 16, 2011 Author Share Posted November 16, 2011 It's done like this in Lua: test --[[ test test test ]]-- test I know well maybe it's just me, but I get used to do it in just one click in other editors. it's just a loop on selected lines, if there's no -- at the beginning of the line you add it, if the -- is already there you remove it. it may sound superfluous at first glance, but if you add 100 such little features you'll get a friendly editor. EDIT: Klepto just explained it wery well. Thanks Quote Windows 7 home - 32 bits Intel Quad Q6600 - nVidia GTX 460 1GB - 2 GB RAM Link to comment Share on other sites More sharing options...
Rick Posted November 16, 2011 Share Posted November 16, 2011 it's just a loop on selected lines, if there's no -- at the beginning of the line you add it, if the -- is already there you remove it. You might want to add the comment no matter what because in a chunk of code you are trying to comment out there might already be comments and when you uncomment the chunk you wouldn't want to uncomment the original comments. Quote Link to comment Share on other sites More sharing options...
Josh Posted November 17, 2011 Share Posted November 17, 2011 I'll add this. Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.