I've been working on codernotes.io to solve this problem, mostly because I couldn't find anything that had all the features I feel are important in a code note app.
I found a method that works for me that I wrote about here: codernotes.io/blog/how-to-take-cod.... Regardless of what software you use, see if that works for you!
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.