![]() ![]() Maybe i'm just being special, i don't know. I guess also when it comes to commenting out actual chunks of code i guess it's preference whether you like to use the key-bind for single line commenting all selected lines or to use a multi-line comment function for it, i prefer to use the multi-line comment function for it. It's ctrl+q in notepad++, but its not a matter of speed, rather readability and dividing the comments into two seperate types. To uncomment the lines of code, we just have to select the lines and then press ctrl+shift+d. I would prefer that the comment characters are placed at the beginning of the line, instead of just before the first printable character. The problem is that Block Uncomment does nothing Multiple lines must be uncommented with Single Line Uncomment (it works with multiple lines selected). The disadvantage of not having a multi-line comment functionality is (from my perspective) mostly the fact that all your comments will be in the same color scheme within the editor (so you can't tell just by a glance where which comments are, for example my goal this time was to create a list of all the bools/flags i've got, and the labels with a brief description in case i'd forget what's what later in development as a precaution inside of script.rpy which i currently only use for character definitions, since it's already a list of all the characters i've defined i figured it'd be nice to put other lists in there as well.) That is OK since there is no block comment in VHDL. I'd rather not lengthen my code by calling up a python block solely for the purpose of writing a comment, instead as an alternative i just created an RTF document to write what i wanted to use a multi-line comment for. ![]() ![]() If you don’t like the mentioned solution above, you can use the triple-quote trick to make a block of Python code not run. Command + / to comment and uncomment multiple lines of Python code on Mac. Thanks, i1abnrk your first example didn't seem to work (then again, i am in windows, but cross platform compatibility is extremely important to me and it'd be a complete waste to develop on Ren'Py and not make use of it's cross platform capabilities don't you think?) Ctrl + / (the slash key) to comment and uncomment lines of Python code on Windows. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |