-
-
Notifications
You must be signed in to change notification settings - Fork 460
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add hotkey for comment/uncomment #95
Comments
A question is how much complex code editor we want. I think, that one of the basic ideas of TIC-80 is a simplicity so adding shortcuts for any little gimmick goes against this idea. For writing a more extensive code is better to use a external editor in which you can use all kinds of plugins and exensions. However, useful feature which is common in many code editors would by a possibility to close a selected text into a parenthesis |
I think plugins for Atom, VSCode, SublimText, Brackets, Notepad++ would be a really good idea. |
I'm alright with you, In fact is more suggestions for improve experience when you write code and reflex pratices and increase productivity. Free of you to implement this or not :-) @Harraps I prefer stay on the tic editor because I can run quickly when i debug :-) |
by the way @nesbox it's possible open the file with a external editor? |
@Gi972 It's not a problem to run fast a code from external editor in TIC. {
"cmd": ["tic", "%APPDATA%/TIC-80/0.21.0 dev/${file_base_name}.tic", "-code","$file"],
"shell":true
} Save as TIC, then switch to new build system: Tools > Build System >TIC and lastly press CTRL+B for build. |
Ok @Crutiatix I code with visual studio code, I will try with it, thanks for the tips ;-) |
Are you on mac or pc? I try on sublime text 3 but when I save TIC build system it don't appear on the menu :-/ @nesbox I see on #69 if possible launch a file from terminal, I try on mac tic game.tic but I have a error : |
@Gi972 Could you pls provide exact info how to reproduce:
|
When I open terminal on the repertory of game folder I write I :
I try too
or
it's launch tic but don't load maybe I don't use the good command, hum hum :-D Could you give me steps to follow?... |
|
Ok I copy the code of tetris. ti c in tetris.lua I try
It's work, it launch tic et load the file.lua but dont load I think the cart I don't see sprites in sprite editor or in map :-/ I forgot something? |
@Gi972 |
Ok I try in put the file tetris.tic and tetris.lua in the same folder and it works. I understand I forgot in my precedent post the path in the second argument of tetris.tic
Hope that help other users |
So for the main subject do you think comment/uncomment it's a bad idea? |
@Gi972 it's a great idea :) |
Hello,
It's possible to add a hotkeys for comment / uncomment the code in the text editor when you highlight ?
The text was updated successfully, but these errors were encountered: