NextJS - App Router 'use client' Inserter at Line 1
This VSCode extension helps you easily insert the 'use client' directive at the top of your Next.js client components. The extension provides a command to insert 'use client' at line 1 or at the current cursor position based on your preference.
TLDR
Open VSCODE
Open options menu ctrl/cmd + p (or rebind to ctrl + ctrl like a real gigachad)
type > extension install from vsix or > vsix will do. > Enter
-Search for nextjs-use-client-inserter-helper-1.0.0.vsix and install that and g2g.
Features
Inserts 'use client' at line 1 of your file.
Configurable to insert the directive at the current cursor position instead.
Avoids inserting duplicate directives if it's already present at the top.