GMS 2 How to make script not appear in the auto-complete feature?

Discussion in 'Programming' started by Suzaku, Jun 12, 2019.

  1. Suzaku

    Suzaku Member

    Jan 27, 2019
    I have some old scripts that Im not using anymore, but I would prefer to leave them in a group of unused scripts, inside of my project. The problem is that their names keep appearing in the auto-complete feature when I start typing some similar name. Is there a way to specify that the script is actually disabled and unused? Thank you.
  2. YellowAfterlife

    YellowAfterlife ᴏɴʟɪɴᴇ ᴍᴜʟᴛɪᴘʟᴀʏᴇʀ Forum Staff Moderator

    Apr 21, 2016
    I would suggest to use version control so that you can safely remove them but check them if you sometime need to.
    Suzaku and Rukiri like this.
  3. Rukiri

    Rukiri Member

    Sep 25, 2016
    ^. Pretty much this.

    Use git or whatever you use and set the version to 0.2 or whatever and the new version 0.3 and the old scripts won't be in the new version branch.
    Suzaku likes this.
  4. samspade

    samspade Member

    Feb 26, 2017
    I also agree with YellowAfterlife. You should look up version control (especially something like git). Then you should delete all code, really all resources, you don't use. Once I started doing this, my code and projects were so much easier to work with. You don't have to worry about losing code, because everything you write is saved, and you don't have to worry about auto fill, scrolling through lists of pointless resources, having finds turn up code you don't care about and having to figure out if it also needs to be changed, and so on.

    That said, for a long time I didn't use version control. While for all the reasons above, this was a bad thing which I ultimately stopped doing, my solution at the time was that I would have an old/saved [resource] folder for each type of resource and if I wasn't using that script, object, font, sprite, etc. I would move it to that folder and change the name of the resource so that it started with old_ (old_scr..., old_obj..., etc.).

    Again, this is a bad long term idea but if for some reason you can't learn to do version control right now, the above worked alright for me for awhile.

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice