My Portfolio

Auto File and Function Comments

Description

"Auto File and Function Comments" is a Visual Studio Code Extension that will allow you to add comments to your Python, Java, C/C++ (and header) files. All you have to do is have the file you want commented open, then press Alt+W. Please note that this extension assumes that your code has no syntax errors.

Video and Screenshots

Coming Soon!

Why I Did This Project

I made "Auto File and Function Comments" because I have loathed commenting my files and functions ever since I started to learn how to program. After making my "Open Command Folder" extension, I was curious to see if I could also automate setting up comment templates for files and functions.

What I Learned From This Project
  • How to integrate python code with a VSCode extension
  • How to recognize function declerations in different languages and formats
  • How to remove previous comments for files and functions
  • How to expand the code to OOP (regular classes, classes that use inheritance, and class specific functions like constructors, deconstructors, getters, and setters)