kygov / tfs_vscode_snippets

Provides autocomplete for enums, methods, functions and everything else for TheForgottenServer

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

VSCode LUA Snippets Installation & Merging Guide

This guide will walk you through how to install snippets in VSCode and how to merge different snippets using a Python script.

How to Install Snippets in VSCode

1. Access the Command Palette

  • Windows/Linux: Press Ctrl + Shift + P
  • Mac: Press Cmd + Shift + P

2. Find the Snippets Menu

  • In the Command Palette, type Snippets and select Configure User Snippets from the dropdown menu.

3. Select LUA Snippets

  • From the list of available languages and options, choose LUA or if you're adding a different language. Select that language.

4. Add Your Snippets

  • Copy and paste your desired snippets into the opened editor.
  • Save the changes. No need to restart VSCode.

Merging Snippets Using the Python Script

1. Open a Terminal in a New Folder

  • Depending on your OS, use cmd, bash, or powershell.

2. Clone the Repository

git clone https://github.com/Coldensjo/tfs_vscode_snippets.git

3. Add Your Snippets

  • Copy your LUA or other snippets file into the cloned folder.

4. Rename the Snippets Files

  • Rename your snippets files to lua.json and lua2.json, you can change this in the script if you want.

5. Run the Merging Script

python merge.py

6. Contribute Back

  • Made improvements? Consider creating a pull request!

About

Provides autocomplete for enums, methods, functions and everything else for TheForgottenServer


Languages

Language:Python 100.0%