VSCode extension for automatic autoDocstring template path configuration
This VSCode extension automatically configures template paths for AutoDocstring based on the operating system. It's particularly useful when you need different paths for Windows and Linux environments.
- VSCode 1.6.0 or higher
- AutoDocstring extension installed
- Node.js and npm installed
-
Configure Path:
- Modify the following section in
src/extension.ts
according to your environment
const baseDir = isWindows ? 'D:\\git\\commons\\.autoDocstring' // Windows path : '~/.autoDocstring' // Linux path
- Modify the following section in
-
Build:
# Install required tools npm install -g yo generator-code npm install -g @vscode/vsce # Install dependencies npm install # Build npm run compile # Package vsce package
-
Install in VSCode: Method 1) Using Extensions Menu
- Launch VSCode
- Open Extensions menu (Ctrl+Shift+X)
- Click "..." (More Actions) and select "Install from VSIX..."
- Select the generated .vsix file
- Restart VSCode
Method 2) Using Command Palette
- Launch VSCode
- Open Command Palette (Ctrl+Shift+P)
- Type "Extensions: Install from VSIX"
- Select the generated .vsix file
- Restart VSCode
- Automatic operating system detection
- Automatic path configuration based on Windows/Linux environment
- Current template path display in status bar
- Manual path reset command available
- Check the configured path in status bar after VSCode restart
- Use "Reset Docstring Template Path" command in Command Palette (Ctrl+Shift+P) for manual reset
This extension is a companion tool for AutoDocstring. Make sure to install the AutoDocstring extension before using this tool.
- Initial release
- OS-based automatic path configuration
- Status bar indicator
- Manual reset command