1

I want to use GML's Intellisense in Lua language mode, but I tried multiple methods but they are all invalid.

I also tried to use DefinitelyTyped, but it only works fine in JavaScript and TypeScript, can't be used for other languages.

LiarOnce
  • 11
  • 2

3 Answers3

0

There is an extension called vscode-lua that supposedly provides intellisense for the lua language.

Natsfan
  • 4,093
  • 3
  • 22
  • 29
0

You can change the language mode of a file by clicking on the language indicator in the Status Bar. If you set it to GML, then the GLM's extension's intellisense should kick in

You can also mark all lua files as gml using files.associationshttps://code.visualstudio.com/docs/languages/overview#_adding-a-file-extension-to-a-language:

"files.associations": {
    "*.lua": "gml"
}
Matt Bierner
  • 58,117
  • 21
  • 175
  • 206
  • I have tried `files.associations`, but it invalidated Lua's highlightings. – LiarOnce Jul 19 '18 at 10:52
  • Yeah there's no way to mix and match language features—grabbing highlighting from one language and intellisense for another—at a user level. For that, you'll have to write an extension – Matt Bierner Jul 19 '18 at 16:11
0

In Visual Studio 2017 I could use the Ctrl+, shortcut to navigate from a symbol in an INI file to its definition in a C++ header file. For it to work you need to make sure the header file where the symbol is defined is part of the solution and not just included from a CPP file.

Slion
  • 2,558
  • 2
  • 23
  • 27