Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>TrollScript Language SupportNew to Visual Studio Code? Get it now.
TrollScript Language Support

TrollScript Language Support

koki1019

|
89 installs
| (0) | Free
This extension adds support to trollscript
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

TrollScript Language Support

This is an extension that brings support to TrollScript programming language!


(trollscript was created for fun and was created with the purpose of trolling thats why most stuff is super weird)

to create trollscript language <filename>.troll

Defind a variable: (SPACES ARE IMPORTANT)

int variableName -> 2

Here are all variable types:

  • int
  • float
  • string
  • bool
  • char
  • any
  • trollsum

How to do math (SPACES ARE IMPORTANT)

int variable -> 5
trollsum -> sumVar -> ${variable} + 5

Troll.Face.System.Log(sumVar)

How to use if statement (SPACES ARE IMPORTANT)

bool boughtItem -> false
if : boughtItem : == : true >> { Troll.Face.System.Log("Item bought") }

REMEMBER! YOU CANNOT CREATE ANOTHER LINE IN {} USE ; TO ADD ANOTHER CODE EXAMPLE:

bool boughtItem -> false
if : boughtItem : == : true >> { Troll.Face.System.Log("Item bought?"); Troll.Face.System.Log(boughtItem); }

Create a function REMEMBER! YOU CANNOT CREATE ANOTHER LINE IN {} USE ; TO ADD ANOTHER CODE EXAMPLE:

#with arguments
trollfunc >> FunctionName >> ...arguments >> { Troll.Face.System.Log("Function Called") }

#without arguments
trollfunc >> FunctionName >> null >> { Troll.Face.System.Log("Function Called") }

Calling a function

#with arguments
trollcall >> FunctionName >> (...arguments)

#without arguments
trollcall >> FunctionName >> (null)

Array and Object support isnt added yet This was made for fun so don't expect much!

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