Readme
Rename Identifier Extension
Easily rename identifiers in Javascript files with the help of Artificial Intelligence.
Description
The Rename Identifier extension works on top of LLM-Plugin extension to get suggestions for better identifier name with the help of Gemini AI.
Features
- Identify and highlight identifiers in your code.
- AI-powered suggestions for better identifier names.
- Double click on a suggestion to update all occurrences of the identifier.
- Maintains scope awareness.
Dependencies
- LLM-Plugin
- @types/chai: TypeScript definitions for Chai.
- @types/mocha: TypeScript definitions for Mocha.
- @types/node: TypeScript definitions for Node.js.
- @types/sinon: TypeScript definitions for Sinon.
- @types/vscode: TypeScript definitions for the Visual Studio Code API.
- @typescript-eslint/eslint-plugin: ESLint rules for TypeScript.
- @typescript-eslint/parser: ESLint parser for TypeScript.
- @vscode/test-cli: CLI for testing VS Code extensions.
- @vscode/test-electron: Electron-based testing for VS Code extensions.
- eslint: A JavaScript linter for ensuring code quality.
- typescript: A superset of JavaScript providing static typing.
- ts-node: TypeScript execution environment for Node.js.
- acorn: A fast, small JavaScript parser.
- acorn-walk: A utility for walking through the AST generated by Acorn.
- sinon: Test spies, stubs, and mocks for JavaScript.
Build
- Clone the project.
- Navigate to /LLMConsumerFrontend/rename-identifier
- run > npm i
- run > npm run compile
Debug
- Press f5 to run the extension in debug mode.
Package the extension
- Install VSCE > npm install -g @vscode/vsce
- run > vsce package
How to use?
- Install LLM-Plugin extension.
- Install Rename Identifier extension.
- Click on the search icon on the top bar to highlight the identifiers.
- Double click on any identifier to get suggestions from AI.
- Double click on any name from the suggestion to replace it with the existing identifier name.
| |