IntelliSense autocomplete for Next.js 15/16 Route Segment Config exports with automatic version detection and deprecation warnings.
- Smart Autocomplete: Type
export constin Next.js route files to get IntelliSense suggestions for all route segment config options - Version-Aware: Automatically detects your Next.js version from
package.jsonand shows/hides options accordingly - Deprecation Warnings: Shows deprecation notices for options that are removed or deprecated in Next.js 15/16
- Comprehensive Documentation: Each option includes detailed explanations of behavior and use cases
- Zero Configuration: Works out of the box in any Next.js project
dynamic- Controls rendering strategy (auto, force-dynamic, force-static, error)- Next.js 16: Shows migration hints for
cacheComponentswhen applicable
- Next.js 16: Shows migration hints for
fetchCache- Data caching strategies (7 options from aggressive caching to no-store)runtime- Runtime environment (nodejs, edge)- Automatically hides deprecated
experimental-edgein Next.js 15+
- Automatically hides deprecated
preferredRegion- Deployment region preferences (auto, global, home)dynamicParams- Dynamic parameter handling (boolean)experimental_ppr- Partial Prerendering toggle- Marked as deprecated in Next.js 16 with migration guidance
revalidate- Cache revalidation intervals (false, 0, or seconds)maxDuration- Maximum execution time (5, 10, 30, 60 seconds)
- VS Code 1.96.0 or higher
- Next.js project (version detection works with Next.js 13+)
- Open a TypeScript/JavaScript file in your Next.js
appdirectory (page.tsx, layout.tsx, route.ts, etc.) - Type
export constfollowed by a config name - Select from the autocomplete suggestions
// Type: export const dynamic =
// IntelliSense will suggest: "auto", "force-dynamic", "force-static", "error"
export const dynamic = "force-dynamic";
export const runtime = "edge";
export const revalidate = 60;The extension automatically reads your package.json to detect the Next.js version and:
-
"export cost ..." config completionss
-
use directives completions at the top of the file
-
Shows version-appropriate options
-
Hides deprecated options in newer versions
-
Displays migration hints when using deprecated features
-
Filters out removed options (e.g.,
experimental-edgeruntime in Next.js 15+)
I kinda want to implement this, I want to first see how useful it could be (i want it to hurt first) these were suggest by claude.
-
"use cache"directive autocomplete (file/component/function level) -
cacheLife()function parameter suggestions with presets (seconds, minutes, hours, days, weeks, max) -
cacheTag()function autocomplete with tag name suggestions -
revalidateTag()autocomplete for cache invalidation - Detection of
cacheComponentsconfig innext.config.jsfor smarter deprecation warnings - Context-aware suggestions based on file type (page, layout, route handler)
- Quick fixes for deprecated options with automatic migration
- Hover documentation for existing config values
- Code snippets for common config combinations
- Validation warnings for incompatible config combinations
None at this time. Please report issues on the GitHub repository.
Initial release with:
- Support for all Next.js 15/16 Route Segment Config options
- Automatic version detection from package.json
- Deprecation warnings for Next.js 16
- Smart filtering of removed options
Inspired by nextjs-route-config-intellisense by Leonardo Cavalcante, updated for Next.js 15/16 compatibility.
MIT
