Code completion is a feature used in live programming that actively reads the user's current code in context to present code suggestions in real-time. The code suggestions may be intended to complete the code for efficiency or improve the code quality.
Code Completion Tools
1. GitHub Co-Pilot: A Code Completion Tool
- Autocompletion of verbose boilerplate code
- For example, constructors, getters, setters, and other common code
- Writing mocks for unit tests
- Auto-generated code suggestions based on:
- function names
- descriptive comments
- existing code
- Easy to get started, and works automatically
- Experience is limited in offline scenarios.
Install the VS Code Extension, and log in to your Microsoft GitHub Account.
GitHub-CoPilot - GitHub - Docs
2. VS Code's Intellisense
- Native feature of VS Code
- Has a marketplace for additional code completion extensions needed for other languages like Python, C/C++, C#, Java, Go, plus more.
- Works offline
- Can conflict with GitHub CoPilot if both are enabled.
Install the VS Code. Install additional extensions for additional language support.
Last update: March 17, 2023