Currently there is not a feature like this. It is planned however, and there will be many lua specific code generators in the future. Please be aware that the autocomplete works inside strings to give you a list of your files in your project folder, you might find it useful:
Thanks for the feature request. Can we ask what kind of items do you have on your snippets list? Perhaps it might be better in terms of maintainability/ code duplication to make a utils.lua file? Please be aware that the code completion works on even your own libraries so you can dump all your snippets into a utils.lua file and just require “utils” like you would any library. You can then invoke autocomplete on it and get a list of your commonly used functions. Even better you should put this utils in an external library and share it with all your projects. Plus if you find a bug in one of your snippets or for whatever reason you need to change it (ie Corona API changes) then you will have to find every place the snippet is used, which can be quite a hassle. However if you have it in a utils.lua file then you can just change one line and all your projects benefit from the change.
We aren’t saying snippets are a bad idea, but we want to get a feel for what you use it for and what ways we can help you improve your workflow. We will be implementing some interesting code generators soon such as
For loop generators- ipairs, pairs, i indexed flavors, etc
localize variables generators - pick from visible globals and automatically localize them
introduce method- intelligently refactor convert a chunk of code into a method
Another point you might want to consider is IDE/vendor lock-in. Since there is no universal file format to store code snippets chances are it will only work for one IDE. However, a lua utilities file is universal, you will only need to write it once.
I have one of those I use in other projects but I didn’t think of the invoke autocomplete stuff (thanx) Its nearly the same and it totally compensate with all the other “good-stuff”
Is there anything that will be unlocked after I purchase?
Currently there is not a feature like this. It is planned however, and there will be many lua specific code generators in the future. Please be aware that the autocomplete works inside strings to give you a list of your files in your project folder, you might find it useful:
Thanks for the feature request. Can we ask what kind of items do you have on your snippets list? Perhaps it might be better in terms of maintainability/ code duplication to make a utils.lua file? Please be aware that the code completion works on even your own libraries so you can dump all your snippets into a utils.lua file and just require “utils” like you would any library. You can then invoke autocomplete on it and get a list of your commonly used functions. Even better you should put this utils in an external library and share it with all your projects. Plus if you find a bug in one of your snippets or for whatever reason you need to change it (ie Corona API changes) then you will have to find every place the snippet is used, which can be quite a hassle. However if you have it in a utils.lua file then you can just change one line and all your projects benefit from the change.
We aren’t saying snippets are a bad idea, but we want to get a feel for what you use it for and what ways we can help you improve your workflow. We will be implementing some interesting code generators soon such as
For loop generators- ipairs, pairs, i indexed flavors, etc
localize variables generators - pick from visible globals and automatically localize them
introduce method- intelligently refactor convert a chunk of code into a method
Another point you might want to consider is IDE/vendor lock-in. Since there is no universal file format to store code snippets chances are it will only work for one IDE. However, a lua utilities file is universal, you will only need to write it once.
I have one of those I use in other projects but I didn’t think of the invoke autocomplete stuff (thanx) Its nearly the same and it totally compensate with all the other “good-stuff”
Is there anything that will be unlocked after I purchase?
How can we change the color of the ‘filenames’ appeared on the Editor Window’s tabs, or in the Projects/Files Window?
I chose the BlackEye theme and the filenames’ are colored blue in default, making it very difficult to tell.
I didn’t see a solution in here and can’t seem to find a way to change those colors. The BlackEye theme is really the only one that works for me, but it’s hard when you can’t read the names of the files in the tabs. They start out white but then turn gray or black after you edit them. I’ve looked all through the Preferences and can’t find a way to change these colors but am probably just missing it. Can you please point me in the right direction?