Intelligent autocompletion for Next.js Route Segment Config exports. Get instant suggestions for all Next.js route configuration options with detailed explanations and proper TypeScript support.
- Complete Route Segment Config Support: All 8 export types with comprehensive value options
- Intelligent Context: Only shows relevant completions in appropriate files
- Rich Documentation: Detailed explanations for each configuration option
- TypeScript & JavaScript: Full support for
.ts,.tsx,.js, and.jsxfiles - Performance Optimized: Lightweight and fast completion suggestions
- Up-to-date: Covers all Next.js 15+ configuration options including experimental features
'auto'- Default behavior, allows dynamic rendering when needed'force-dynamic'- Forces dynamic rendering for every request'force-static'- Forces static rendering and caching'error'- Throws error if dynamic rendering is attempted
'auto'- Default caching behavior'default-cache'- Forces caching for fetch requests'only-cache'- Only allows cached fetch requests'force-cache'- Forces all requests to be cached'force-no-store'- Forces all requests to skip cache'default-no-store'- Default to no caching'only-no-store'- Only allows non-cached requests
'nodejs'- Node.js runtime (default)'edge'- Edge runtime for better performance'experimental-edge'- Deprecated edge runtime
'auto'- Automatic region selection'global'- Global deployment'home'- Deploy to home region
true- Allow dynamic parameters (default)false- Disallow dynamic parameters
true- Enable Partial Prerenderingfalse- Disable Partial Prerendering (default)
false- Never revalidate0- Revalidate on every request60- Revalidate every minute3600- Revalidate every hour
5- 5 seconds maximum execution time10- 10 seconds maximum execution time30- 30 seconds maximum execution time60- 60 seconds maximum execution time
- Open VS Code
- Go to Extensions (
Ctrl+Shift+X/Cmd+Shift+X) - Search for "Next.js Route Config IntelliSense"
- Click Install
- Open your editor
- Go to Extensions
- Search for "Next.js Route Config IntelliSense"
- Click Install
- Download the latest
.vsixfile from GitHub Releases - Install via command line:
code --install-extension nextjs-route-config-intellisense-x.x.x.vsix
- Create or open a Next.js route file (e.g.,
app/page.tsx,app/layout.tsx) - Start typing an export statement:
export const - Trigger autocomplete (
Ctrl+Space/Cmd+Space) - Select from available options with detailed descriptions
// In app/page.tsx
export const dynamic = 'force-static';
export const revalidate = 3600;
export const runtime = 'edge';
export const fetchCache = 'force-cache';See the extension in action with intelligent autocompletion for Next.js Route Segment Config exports:
_Intelligent suggestions for dynamic
The extension provides:
- Context-aware suggestions that only appear when relevant
- Rich descriptions explaining the purpose and impact of each option
- Performance insights to help you make informed decisions
- Type safety with proper TypeScript integration
This extension uses a fully automated release system powered by semantic-release:
- Automatic Versioning: Version numbers are determined by commit message types
- Instant Publishing: New releases are automatically published to both VS Code Marketplace and Open VSX Registry
- Changelog Generation: Release notes are automatically generated from commit messages
- Zero Manual Work: No need to manually create releases or update version numbers
feat:commits → Minor version (0.1.0 → 0.2.0)fix:commits → Patch version (0.1.0 → 0.1.1)BREAKING CHANGE:→ Major version (1.0.0 → 2.0.0)- Other types (
docs:,chore:, etc.) → No version bump
This ensures users always get the latest features and fixes automatically!
- Node.js 20.x or higher
- npm (comes with Node.js)
- VS Code or Cursor
# Clone the repository
git clone https://github.com/cavalcanteLeo/nextjs-route-config-intellisense.git
cd nextjs-route-config-intellisense
# Install dependencies
npm install
# Install git hooks
npm run prepare# Run tests
npm test
# Run tests with coverage
npm run test:coverage
# Run linting
npm run lint
# Fix linting issues
npm run lint:fix
# Format code
npm run format
# Check formatting
npm run format:check
# Compile TypeScript
npm run compile
# Watch for changes
npm run watch- Open the project in VS Code
- Press
F5to launch Extension Development Host - Test the extension in the new window
- Create a Next.js file and test autocompletion
We welcome contributions! Please see our Contributing Guide for details.
- Fork the repository
- Create a feature branch:
git checkout -b feat/your-feature - Make your changes following our code standards
- Write tests for new functionality
- Use conventional commits:
git commit -m "feat: add new feature" - Push and create a PR
All commits must follow Conventional Commits format for automatic versioning.
This project maintains high code coverage standards:
- Function Coverage: 100%
- Statement Coverage: 97%+
- Branch Coverage: 79%+
Coverage reports are automatically generated and uploaded to Codecov.
- Bug Reports: GitHub Issues
- Feature Requests: GitHub Issues
- Discussions: GitHub Discussions
This project is licensed under the MIT License - see the LICENSE file for details.
- Next.js Team for the comprehensive documentation
- VS Code Team for the excellent extension API
- Contributors who help improve this extension
Made with ❤️ by Leonardo Cavalcante

