File Ops
VS Code extension to import file path, tag/alias files & quick switch
Overview
1. File Import - Paste relative path to other files
2. File Tag - Tag/Alias/Bookmark files
3. Quick Switch - Switch between file pairs. ex. switch between .css & .js from same folder using Ctrl/Cmd+E
4. Related Files (same folder) - View files from the current directory & switch
Watch Demo
Features
File Import
File Import: Copy Path
: Copy absolute path from command menu or right click
File Import: Paste Path
: Paste the relative path using command menu or right click

File Tag
- Create file aliases. open & view files using the aliases
- Open, View, Edit, Delete file tags from the tree view, or
- Perform operations using the commands. Search for
File Tag
to get all commands
Note: All extension data is stored in an auto generated file called .file-tag
Please do not make any changes to that file. If required, add it to .gitignore

Quick Switch
Quickly switch between file pairs. ex., Switch between .css
& .js
files from the same folder.
Define custom pairs using the exposed setting (fileOps.fileSwitch.excludeFiles)
Note: By default, index.js
file is excluded so it wont be considered for switching

Show all files (except active file) from current folder

Commands
Run commands by opening Command Palette Ctrl+Shift+P
/ Cmd+Shift+P


Shortcuts
Feature |
Shortcut |
Description |
Quick Switch |
Cmd+E / Ctrl+E |
Switch between file pairs. ex., switch between .css & .js file using the shortcut |
Related Files |
Cmd+Shift+E / Ctrl+Shift+E |
Show all files (except active file) from current folder |
File Import: Copy Path |
Cmd+Shift+C / Ctrl+Shift+C |
Copy absolute path of active file |
File Import: Paste Path |
Cmd+Shift+V / Ctrl+Shift+V |
Paste relative path to the copied file |
Settings
Setting |
Default value |
Description |
fileOps.fileSwitch.quickSwitchPairs |
[".js,.ts/.css,.sass,.scss", ".js/.js", ".json/.md"] |
Define file pairs to enable switch between them.ex., [".json/.md"] ) will enable switching between .json & .md using Quick Switch shortcut. Accepted regex for a pair: /^(\.[a-z]+)(,(\.[a-z]+))*\/(\.[a-z]+)(,(\.[a-z]+))*$/ |
fileOps.fileSwitch.excludeFiles |
["index.js"] |
File names to be excluded from quick switch |
fileOps.fileImport.addQuotes |
true |
Wrap the relative path in double quotes |
fileOps.fileImport.addFileExtension |
true |
Retain the file extension of relative path |
Other projects
- Dev Box - A UI for local storage
- Array Builder - A free tool to visualize the output of array operations
- Fireboard - A work tracker for software developers
- Codedrops - Micro-blogging on Web development
- Octon - Manage expenses, todos, goals, progress & personal timeline
- Note Box - A chrome extension to add notes/todos based on URL
- Github Marker - A chrome extension to Favorite, Bookmark & Mark link as Read in Github
Support
If you liked this extension consider supporting here