typescript-plugin-move-file
TypeScript icon, indicating that this package has built-in type declarations

0.0.7 • Public • Published

TypeScript plugin for moving files or folders

Demos

Moving and renaming a file in Visual studio Code Editor:

  • Moving and renaming a file in Visual studio Code Editor

Editor agnostic!. See the same demo but in Atom editor:

  • Moving and renaming a file in Atom Editor

How to use

npm i --save-dev typescript-plugin-move-file

in your tsconfig.json, add the plugin:

{
  "compilerOptions": {
    "plugins": [{
        "name": "typescript-plugin-move-file"
    }]
  }
}

Make sure you have installed typescript in your project (npm i --save-dev typescript) the editor you are using uses that typescript and not another. For example, Visual Studio Code comes with its own typescript version, so you need to "Select TypeScript Version" of the workspace:

{
  "typescript.tsdk": "node_modules/typescript/lib"
}

In Atom editor, if you use atom-typescript package you don't need to do anything since by default it will use the workspace's TypeScript version.

TODO

  • move folder is broken
  • show confirmation in the current sourcefile (large projects take several seconds)
  • notify last error - adding a comment just below the &%&% comment that failed
  • option to undo-last-action

Package Sidebar

Install

npm i typescript-plugin-move-file

Weekly Downloads

1

Version

0.0.7

License

MIT

Unpacked Size

9.8 kB

Total Files

5

Last publish

Collaborators

  • cancerberosgx