Skip to content
| Marketplace
Sign in
Visual Studio Code>Formatters>SWG DataTable EditorNew to Visual Studio Code? Get it now.
SWG DataTable Editor

SWG DataTable Editor

Wasted Potential Studios LLC

|
1 install
| (0) | Free
View and edit Star Wars Galaxies .tab (DataTable) files with column alignment and type validation
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

SWG DataTable Editor

License: MIT VS Code

A Visual Studio Code extension for viewing and editing Star Wars Galaxies .tab (DataTable) files with column alignment, type validation, and an Excel-like grid view.

Copyright © 2024-2026 Wasted Potential Studios LLC. All rights reserved.

DataTable Editor Screenshot

Features

  • View DataTable Files: Automatically formats .tab files with aligned columns for easy reading
  • Type Validation: Validates data against column types (integer, float, string, hash, bool, enum, etc.)
  • Smart Editing: Edit tables in plain text with automatic column alignment
  • Save Back to .tab: Converts your edits back to the standard tab-delimited format
  • Column Info: Shows column types and descriptions in the editor header

Supported Column Types

  • i - Integer (whole numbers)
  • f - Float (decimal numbers)
  • s - String (text)
  • h - Hash String (stored as integer CRC)
  • b - Boolean (0 or 1)
  • e - Enum (enumerated values)
  • p - Packed ObjVars (packed data)
  • c - Comment (ignored column)

Usage

Opening DataTable Files

  1. Automatic: Click on any .tab file in VS Code's file explorer
  2. Command Palette: Press Ctrl+Shift+P, type "Open SWG DataTable", and select a file
  3. Right-Click: Right-click a .tab file and select "Open SWG DataTable"

Viewing Format

The extension displays .tab files with:

  • Header comments showing file path, column count, and row count
  • Column type descriptions (e.g., weapon_id: s (String))
  • Aligned columns for easy reading
  • Tab-separated values

Example display:

# Star Wars Galaxies DataTable
# File: c:\path\to\file.tab
# Columns: 5
# Rows: 50
#
# Column Types:
#   weapon_id: s (String)
#   weapon1: s (String)
#   weapon2: s (String)
#   weapon3: s (String)
#   weapon4: s (String)
#
# Edit the data below. Save to write changes back to the .tab file.

weapon_id                  weapon1                                            weapon2                                            weapon3                                            weapon4
s                          s                                                  s                                                  s                                                  s
pirate_rifle               object/weapon/ranged/rifle/rifle_laser.iff         object/weapon/ranged/rifle/rifle_sg82.iff          object/weapon/ranged/rifle/rifle_t21.iff           object/weapon/ranged/rifle/rifle_dlt20a.iff
pirate_carbine             object/weapon/ranged/carbine/carbine_laser.iff     object/weapon/ranged/carbine/carbine_ee3.iff       object/weapon/ranged/carbine/carbine_elite.iff

Editing

  1. Edit the data rows directly in the editor
  2. Lines starting with # are comments and will be removed on save
  3. Press Ctrl+S (or Cmd+S on Mac) to save changes
  4. The extension validates data types before saving

Formatting

To realign columns after editing:

  1. Press Ctrl+Shift+P and run "Format DataTable Columns"
  2. Or right-click in the editor and select "Format DataTable Columns"

Installation

From VS Code Marketplace

  1. Open VS Code
  2. Go to Extensions view (Ctrl+Shift+X)
  3. Search for "SWG DataTable Editor"
  4. Click Install

From VSIX

  1. Download the .vsix file
  2. In VS Code, press Ctrl+Shift+P and run "Extensions: Install from VSIX..."
  3. Select the downloaded .vsix file

File Format

DataTable files (.tab) have a simple structure:

<column1>\t<column2>\t<column3>\t...
<type1>\t<type2>\t<type3>\t...
<value1>\t<value2>\t<value3>\t...
<value1>\t<value2>\t<value3>\t...
  • Line 1: Column names (tab-separated)
  • Line 2: Column types (single character, tab-separated)
  • Line 3+: Data rows (tab-separated values)

Requirements

  • Visual Studio Code version 1.85.0 or higher

Known Issues

  • Very large files (>10MB) may take a moment to load
  • Enum type validation requires the enum definition file

Release Notes

1.0.0

  • Initial release
  • Tab file viewing with column alignment
  • Type validation for all column types
  • Save edited data back to .tab format
  • Format command for column alignment

Based on Official Source Code

This extension was built by analyzing the official SWG source code from the DataTable and DataTableWriter implementations in the shared utility library.

License

MIT License

Copyright © 2024-2026 Wasted Potential Studios LLC

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Credits

Created by Wasted Potential Studios LLC for the Star Wars Galaxies developer community.


Made with ❤️ for the SWG Community

License

MIT License - See LICENSE file for details

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft