I've never had to write stuff like that down for my games (except in the Playstation RPG Makers where you couldn't name switches or variables).
What I do is I give the switches and variables very clear and descriptive names (such as "Icicle Cave: # Torches Lit" or "Rose Town: Orc Rescue Quest Avail"), and I organize them into sets of 20 based on their location in the game.
For example, if there's a region of the game that I expect to have 6-8 dungeons, I'll set aside an entire block of 200 switches and 200 variables for that region (perhaps #401 through #600). Then, I'll set aside 20 switches & variables from this block for each dungeon in this region, even if I expect a dungeon might only need, for example, 5 switches and 1 variable. Icicle Cave might have Switches #441 through #460 and Variables #441 through #460 (always the same, to keep things organized). This way, each page of Switch/Var's represents one dungeon. I know where to find it and I don't have to go hunting and pecking. If I decide to add a 9th dungeon to this region, I still have room for it (#561 through #580), so things stay pretty organized.
- For global game functions, I usually group them into pages of 20 like "Parallax Mapping stuff", "Skills & Magic stuff", "Visual UI stuff", etc., in the first 100-200 Switches and Variables.
This is all referring to RPG Maker, of course. In other game engines, things are organized differently and I just come up with a system that works better for that engine. In GameMaker Studio 2, for example, I usually create all object-level variables at the top of my Create event for that object type, using Comments to describe them lest I forget what they do, and for global variables I create them the same way in a single invisible "Party" object that's instantiated at the beginning of the game.