Coder Social home page Coder Social logo

gatsbyjs / gatsby_code_profiles Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ekwuno/gatsby_code_profiles

1.0 2.0 1.0 12.29 MB

JavaScript 0.79% Clojure 0.30% C++ 96.94% CSS 0.06% Elm 0.04% HTML 0.14% TypeScript 0.37% PHP 0.24% PowerShell 0.57% Python 0.17% Ruby 0.21% Vue 0.15%

gatsby_code_profiles's Introduction

Gatsby Visual Studio Code Profile

This is a custom VS Code profile built for Gatsby code demos and docs, providing an accessible Gatsby color scheme.

This theme is a variation of Shades of Purple created by Ahmad Awais.

What is a code profile?

A code profile is a custom settings.json configuration that's shareable and reusable across different instances of VS Code. It is mostly used to avoid repetition that comes with resetting the default settings.json of a VS Code environment when you want to say, bump up the font-size for a screencast or feel like using a theme with other custom settings.

For the Gatsby docs, a VS Code profile helps us create consistent learning materials.

Setting up Gatsby_code_profiles

To set up the Gatsby code profile, follow these steps:

  1. Clone the repository into your computer's root directory.
cd ~/
git clone https://github.com/Ekwuno/gatsby_code_profiles.git

Then change directories into the code profile.

cd gatsby_code_profiles 

In the gatsby_code_profiles directory exists the presentation folder which houses the custom settings.

  1. Set up an alias

To prevent from having to type a lengthy launch command every time, you'll want to set up an alias for your Terminal to launch VS Code with these settings and extensions from ~/gatsby_code_profiles.

Vscode has a command line alias to launch from the command line

To set an alias for this command using Oh My Zsh, paste this command into your .zshrc file:

alias gatsby-teach="code --extensions-dir ~/gatsby_code_profiles/presentation/exts --user-data-dir ~/gatsby_code_profiles/presentation/data"

Now anytime you want to launch VS Code with the custom settings, you can run gatsby-teach {name of directory}.

Launching the profile

Restart your terminal and test out the command. You can include a project path to open it with that profile, or leave the directory blank to start a new project:

gatsby-teach ./some-demo-directory

Adding more profiles

As more VS Code profiles are added, the Name of profile will also be updated:

code --extensions-dir ~/gatsby_code_profiles/{Name of profile}/exts --user-data-dir ~/gatsby_code_profiles/presentation/data

gatsby_code_profiles's People

Contributors

ekwuno avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

isabella232

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.