VS Code Setup - mechwarrior82/eve-online-odoo-integration GitHub Wiki

Absolutely! Let's get you set up with VS Code and connect it to your GitHub repository. Here are the steps:

Step 1: Install Visual Studio Code

  1. Download and Install VS Code:
    • If you haven't already, download and install Visual Studio Code from here.
    • Follow the installation instructions for your operating system (Windows, macOS, or Linux).

Step 2: Install Git

  1. Install Git:
    • If you don't have Git installed, download it from here.
    • Follow the installation instructions for your operating system.

Step 3: Set Up GitHub Repository

  1. Create a GitHub Repository:
    • Go to GitHub and log in to your account.
    • Click on the New button to create a new repository.
    • Enter a repository name, description (optional), choose to make it public or private, and click Create repository.
    • Follow the instructions on the screen to initialize the repository with a README file if desired.

Step 4: Set Up VS Code

  1. Open VS Code and Set Up Git:

    • Open Visual Studio Code.
    • Open the terminal in VS Code by selecting View > Terminal or pressing Ctrl+`.
  2. Clone Your GitHub Repository:

    • In the terminal, navigate to the directory where you want to clone the repository.
      cd path/to/your/directory
      
    • Clone the repository using the URL provided by GitHub.
      git clone https://github.com/yourusername/your-repository.git
      

Step 5: Connect VS Code to GitHub

  1. Open the Cloned Repository in VS Code:

    • Navigate to the folder where you cloned the repository.
    • Open the folder in VS Code by selecting File > Open Folder and choosing the repository folder.
  2. Set Up Git in VS Code:

    • In the terminal, configure your Git username and email if you haven't already:
      git config --global user.name "Your Name"
      git config --global user.email "[email protected]"
      
  3. Make Your First Commit:

    • Create a new file (e.g., README.md) and add some content.
    • Save the file.
    • In the terminal, add the file to the staging area:
      git add README.md
      
    • Commit the file to your local repository:
      git commit -m "Initial commit"
      
  4. Push Changes to GitHub:

    • Push the committed changes to GitHub:
      git push origin main
      

Step 6: Install GitHub Extension for VS Code (Optional)

  1. Install the GitHub Extension:
    • Open the Extensions view by selecting View > Extensions or pressing Ctrl+Shift+X.
    • Search for "GitHub" and install the GitHub Pull Requests and Issues extension.
    • This extension helps you manage GitHub pull requests and issues directly within VS Code.

You're all set! Your VS Code is now linked to your GitHub repository. Let me know if you encounter any issues or need further assistance with any step.