- Support autocomplete outside of localhost
- Allows user to select LLM
- Code selection for autocomplete
- RAG for code in directory
highlight-code-change.mov
code-autocomplete.mov
code-fim.mov
tab-nav.mov
code-summary.mov
code-updates.mov
- Code Editing: Supports editing Python code with line numbers.
- Syntax Highlighting: Uses
Prism.jswith a light theme. - Autocomplete: Fetches code suggestions from an OpenAI API server based on the provided code.
- Keyboard Shortcuts:
- Press
Altto fetch autocomplete suggestions. - Press
Tabto insert suggestions into the editor. - Press
Escapeto clear suggestions.
- Press
-
Clone the repository:
git clone https://github.com/tmickleydoyle/code-editor.git cd code-editor -
Install dependencies:
npm install
-
Start the development server:
npm run dev
- Open the application in your browser.
- Edit Python code in the editor.
- Press
Altto generate autocomplete suggestions. - Press
Tabto merge the suggested code into your editor.
Note: For autocomplete, run an Ollama server locally.
CodeEditorComponent: Handles the core functionality of the editor.monaco-editor: Lightweight code editor library.Prism.js: Provides syntax highlighting.