solorice/vscodium/extensions/patbenatar.advanced-new-file-1.2.2
2022-04-28 21:17:01 +03:00
..
node_modules Added vscodium 2022-04-28 21:17:01 +03:00
out/src Added vscodium 2022-04-28 21:17:01 +03:00
types/gitignore-to-glob Added vscodium 2022-04-28 21:17:01 +03:00
.travis.yml Added vscodium 2022-04-28 21:17:01 +03:00
.vsixmanifest Added vscodium 2022-04-28 21:17:01 +03:00
appveyor.yml Added vscodium 2022-04-28 21:17:01 +03:00
CHANGELOG.md Added vscodium 2022-04-28 21:17:01 +03:00
LICENSE.txt Added vscodium 2022-04-28 21:17:01 +03:00
package-lock.json Added vscodium 2022-04-28 21:17:01 +03:00
package.json Added vscodium 2022-04-28 21:17:01 +03:00
README.md Added vscodium 2022-04-28 21:17:01 +03:00
tslint.json Added vscodium 2022-04-28 21:17:01 +03:00

VSCode Advanced New File

Travis AppVeyor

Inspired by Sublime's AdvancedNewFile plugin, this adds the ability to create files anywhere in your workspace.

Demo

Features

  • Fuzzy-matching autocomplete to create new file relative to existing path (thanks to JoeNg93 for making it faster)
  • Create new directories while creating a new file
  • Create a directory instead of a file by suffixing the file path with / as in somedirectory/ to create the directory (thanks to maximilianschmitt)
  • Ignores gitignored and workspace files.exclude settings.
  • Additional option of adding advancedNewFile.exclude settings to workspace settings just like native files.exlude except it explicitly effects AdvancedNewFile plugin only. (thanks to Kaffiend)
  • Control the order of top convenient options ("last selection", "current file", etc) via config setting advancedNewFile.convenienceOptions

Configuration Example

"advancedNewFile.exclude": {
  "node_modules": true,
  "node_modules_electron": true,
  "dev": true,
  "dist": true
},
"advancedNewFile.showInformationMessages": true,
"advancedNewFile.convenienceOptions": ["last", "current", "root"]

Usage

  • Command palette: "Advanced New File"
  • Keyboard shortcut: cmd+alt+n (Mac), ctrl+alt+n (Win, Linux)

Keybindings

You can add your own keybinding in your keybindings.json

{
  "key": "ctrl+n", // "cmd+n" on mac
  "command": "extension.advancedNewFile",
}

Notes

Because VSCode extensions don't yet have the ability to do type-ahead autocomplete within the text input box (See https://github.com/Microsoft/vscode/issues/426), we work around this limitation and provide autocomplete using a two-step workflow of selecting existing path, then providing new filename/path relative to the selection.

Contributing

  1. Clone the repo
  2. $ npm install
  3. Add your feature or fix (in src/) with test coverage (in test/)
  4. Launch the extension and do some manual QA (via Debug > Launch Extension)
  5. Run the tests (via Debug > Launch Tests)
  6. Run the linter: npm run lint
  7. Open a PR