Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Quick New FileNew to Visual Studio Code? Get it now.
Quick New File

Quick New File

Aviv

|
129 installs
| (0) | Free
Create a new file that's similar to this file: same package and language.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Quick New File: A VSCode Extension

Quicker way to create a new file (that looks like the current one).

Features

Hit ctrl+shift+N to create a new file that has the same context as the current one:

  • Same extension and directory
  • Same package declaration (where applicable)
  • Same imports (new!)
  • Same hashbang (#!) string (also, chmod +x)
  • Boilerplate code (where applicable)

Supported Languages

  • Go (Package, imports and build constraints)
  • Java (Package, imports and class boilerplate)
  • PHP (<?php)
  • Python (Imports) (new!)
  • Shellscript (set and source statement)
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft