Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>file in folderNew to Visual Studio Code? Get it now.
file in folder

file in folder

Kevin Yobeth

|
18 installs
| (1) | Free
put a file in a folder
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

File in Folder - VS Code Extension

This extension allows you to quickly move a file into a new folder directly from the VS Code file explorer context menu. The folder is created in the same directory as the file, and you can specify the folder name (defaulting to the file name).

Features

  • Move Files Easily: Right-click a file in the file explorer and choose Move File to Folder.
  • Custom Folder Name: Prompt to name the folder, with the file name as the default.
  • Seamless Integration: Automatically creates the folder and moves the file in one step.

How to Use

  1. Right-click a file in the Explorer.
  2. Select Move File to Folder from the context menu.
  3. Enter a folder name when prompted, or press Enter to use the default (file name).
  4. The extension will:
    • Create the folder in the same directory as the file.
    • Move the selected file into the new folder.

Installation

  1. Download and install the extension from the VS Code Marketplace.
  2. Reload VS Code if necessary.

Example

  1. File: example.js
  2. Action: Right-click and choose Move File to Folder.
  3. Prompt: Enter folder name (default is your file name without extension).
  4. Result: /path/to/example/ <- New folder created /path/to/example/example.js <- File moved into the folder
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft