IntelliNamer: AI-Powered Variable Naming for JavaScript
IntelliNamer is a Visual Studio Code extension that leverages the power of OpenAI's GPT-4 to generate creative, professional, and amazing variable names for your JavaScript code.
Features
Generate variable names for const, let, and var declarations
Provide suggestions for function names
Automatically replace selected variable or function names with AI-generated suggestions
Installation
Launch Visual Studio Code
Open the Extensions view by clicking on the Extensions icon in the Activity Bar on the side of the window
Search for "IntelliNamer" in the Extensions search bar
Click the Install button next to the IntelliNamer extension
Usage
Open a JavaScript file in Visual Studio Code
Select the entire line or multiple lines of code containing the variable or function declaration you want to rename
Press Ctrl+Shift+P (or Cmd+Shift+P on macOS) to open the Command Palette
Type "IntelliNamer" in the Command Palette search bar, and select "IntelliNamer: Fetch Variable Name Suggestion"
The extension will send the selected code to OpenAI's GPT-4 model and fetch a suggestion for the variable or function name
The selected variable or function name will be automatically replaced with the AI-generated suggestion
Troubleshooting
If you encounter any issues while using the IntelliNamer extension, please ensure that:
You have an active internet connection, as the extension relies on OpenAI's API
You have selected the entire line or multiple lines of code containing the variable or function declaration
You are using a JavaScript file
In case of any other issues or errors, feel free to report them on the IntelliNamer GitHub repository.
Contributing
We welcome contributions to improve the IntelliNamer extension. Please submit issues or pull requests on the IntelliNamer GitHub repository.