/Vscodescript

Personal automation cli app for ease of opening projects/playground workplaces in VScode and various other utilities.

Primary LanguagePythonMIT LicenseMIT

VScodescript

GitHub license Maintenance made-with-python

Personal automation cli app for ease of opening projects/playground workplaces in VScode and various other utilities. All you have to do is Win+R then vs project somename and done.

Note: Only tested on Windows but should work on other platforms.

Requirements

  • Python 3.6+.
  • Visual Studio Code installed.
    Note: both Python & Visual Studio Code must be included in the PATH Environment variable.

Getting Started

  • Clone the repo or click here to download the zip file then extract it locally.
  • Add the cloned repo directory to PATH Environment variable.
  • Open the cloned repo in the terminal and run pip install -r requirements.txt.
  • Run vs in terminal if on Windows or vs.py otherwise.
    Note: If vs.py doesn't work, you may need to change the shebang/first line in vs.py into:
    #! /usr/bin/env python3
    

VS help gif

Personal development

  • Install Make if you're on Windows. OSX already has it installed. Linux will tell you how to install it (i.e., sudo apt-get install make)
  • Install Poetry for managing dependencies or just use python's pip.
    • If you want to disable poetry's venv creation run make venv PY_VENV=false.
    • If you want to add a new dependency run make install DEP_NAME="<name>" and replace <name> with the dependency's name.
    • if you want to export the updated dependencies to a requirements.txt file, run make update-deps.

License

  • MIT