Inspiration
This was really inspired by me when I try to learn how to code. There are just so many things I need to remember, I really wish to have a personalized code autocomplete so I can skip the redundancy in coding. Thus my extension was created.
What it does
Basically, it able to create an autocomplete snippet in the Visual Studio Code. And it read line by line, and it will recommend based on your input. It is personalized since I used the GitHub API. What I really want to work is being able to customize it, but it turns out that it's a little bit hard to customize it. So I just hard-coded the repository link. But surprisingly, I actually able to get the user's input for their username and their corresponding repositories.
How I built it
I built it using TypeScript as a VSCode Extension. And GitHub API is also a key component for this VSCode Extension. And Appreciate all mentors who helped me to built this extension!
Challenges I ran into
I ran into a lot of challenges, the biggest challenge is to get used to TypeError using TypeScript. I really not used to typed language. Another problem is difficulty of the documentation, it should really be able to make it even more clear. Although the code samples do help tremendously! Specifically, how to load code so the autocomplete actually works. Also, how to get GitHub API works using request module, etc.
Accomplishments that I'm proud of
I'm proud of to create my first TypeScript application and VSCode extension! And I learned how to use request module in TypeScript, I also made the partial extension works, so basically it's able to autocomplete code from my repository.
What I learned
I learned some basic of typed language in general, and TypeScript more specifically. I also learned how to communicate with different mentors, and I learned how to create a VSCode Extension!
What's next for A VSCode Extension | Python Code Autocomplete (sort of)
- Use machine learning to make suggestion better
- Fix the GitHub Repo, so I don't have to hardcode my repo anymore
- Deploy to marketplace.
Built With
- github-api
- typescript
- visual-studio-code
Log in or sign up for Devpost to join the conversation.