Coder Social home page Coder Social logo

code-profiles's Introduction

code-profiles 💻

CI

Simply, what is it?

Profiles for VS Code Extensions.

I use this to load only the extensions I need in VS Code depending on projects.

How does it work?

You need 2 things:

  • a code-profiles.yml where your executable is. This is where you define your profiles.
  • a .code-profile with a valid profile name. This will start VSCode using --extensions-dir with the right extensions.

You have multiple commands:

  • open: which opens VSCode with a specified profile.
    From the .code-profile file in the current working directory or args (code-profiles open [profile_name])
  • install: which installs required extensions for a specified profile.
    From the .code-profile file in the CWD or args (code-profiles install [profile_name])

Usage

Basic commands:

Usage:
  code-profiles [command]

Available Commands:
  completion  Generate the autocompletion script for the specified shell
  help        Help about any command
  install     install required VSCode extensions for a given profile
  open        open VSCode using a custom profile for extensions

Flags:
  -h, --help   help for code-profiles

install

install required VSCode extensions for a given profile

Usage:
  code-profiles install [profile_name] [flags]

Flags:
  -c, --config-path string   Path to code-profiles config (default "./code-profiles.yml")
  -h, --help                 help for install
  -v, --verbose              prints additional logs

open

open VSCode using a custom profile for extensions

Usage:
  code-profiles open [profile_name] [flags]

Flags:
  -c, --config-path string   Path to code-profiles config (default "./code-profiles.yml")
  -h, --help                 help for open
  -i, --install              should install extensions before opening VSCode
  -v, --verbose              prints additional logs

code-profiles's People

Contributors

marcantoineg avatar

Stargazers

arfa.zhang avatar  avatar

Watchers

James Cloos avatar  avatar

code-profiles's Issues

update `README.md`

📖 Description

  • add Usage section to readme.
  • rework Decription section.
  • add CI badge

document stuff

Description 📖

Write doc for:

  • utils.go
  • config.go
  • open.go?

test `install.go`

Description 📖

Make sure it installs at the right place whether it's a:

  • relative path
  • absolute path
  • path that starts with ~

Installation never actually happens

Description 📖

After deleting what was already installed from another version, I can't seem to install anything anymore.

STR

  • rm -rf a profile's path
  • code-profiles open -i or code-profiles install the deleted profile
  • see that it seems to install the profile & launch vscode but the extensions are not installed in the profile's path.

force install extensions

Add a flag (-f, --force) on the install command to either delete the profile folder, then reinstall all extensions, or force install/update all extensions if possible.

*Deleteing the profile folder should be avoided in case the user puts something else in there for some reason.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.