I tend to use OneNote for my everything bucket. Note that the key phrase there is everything. It's not ideal for code but it is pretty good at organizing thoughts. I can mix code snippets with screenshots and todo lists.
I also use git for code that I need to checkout and codepen for visual code sharing.
That said, I'm a frontend developer. My code rarely lacks a visual component.