Skip to content

Instantly share code, notes, and snippets.

@Gimpeh
Last active September 13, 2024 22:27
Show Gist options
  • Save Gimpeh/19241ee7c3c9338ed4fb56d9dba1dd9c to your computer and use it in GitHub Desktop.
Save Gimpeh/19241ee7c3c9338ed4fb56d9dba1dd9c to your computer and use it in GitHub Desktop.
Gimpeh's VSCode settings and Extensions
Lua by sumneko
Lua by Tencent
Lua Debug by actboy168 -- I dont actually know that Ive used this one at all
lua lint by satoren
OpenComputersLua by Dominic Hook
OpenComputerSnippets by power5000
{
"workbench.editor.highlightModifiedTabs": true,
"workbench.editor.alwaysShowEditorActions": true,
"git.defaultCloneDirectory": "c:\\Users\\Gimp\\Documents\\Opencomputers\\GimpOCD",
"git.enableSmartCommit": true,
"git.confirmSync": false,
"extensions.ignoreRecommendations": true,
"Lua.completion.displayContext": 1,
"Lua.type.inferParamType": true,
"Lua.hint.paramName": "Literal",
"Lua.hint.enable": true,
"Lua.hover.expandAlias": false,
"lualint.useLuacheck": false,
"[lua]": {
"editor.defaultFormatter": "sumneko.lua"
},
"diffEditor.ignoreTrimWhitespace": false,
}
To enable most of the extensions to work while using git linked to a repo the following (potentially risky) options need to be added to the top (or to an individual workspaces settings.json instead). These are NOT recommended while operating on other people code however.. Unless you completely trust the codebase.
"security.workspace.trust.untrustedFiles": "open",
"security.workspace.trust.banner": "always",
"security.workspace.trust.enabled": false,
Also, i use the extenion 'GitHub Copilot'. However that one is not free (but it comes with a free 30 day trial).
The chat hasnt been incredibly helpful to me.. But it suggests code while you type.. and it learns from what you do. So the longer you use it, the better it gets. If, for example, every piece of every widget inside of a codebase requires the same 3 or 4 methods, and they all function relatively the same way.. adding one of those lines of code literally becomes <enter> <tab> done.
more advanced functions that it tries to write for you typically need tweaking.. but, that is not always the case, and sometimes I find I prefer its suggestion to what I was going to put myself.
@AnrDaemon
Copy link

Remove color theme definition. It's a user preference, not language necessity.

@Gimpeh
Copy link
Author

Gimpeh commented Sep 13, 2024

Remove color theme definition. It's a user preference, not language necessity.

done. anything else?

@AnrDaemon
Copy link

I'll see once I'm down to actual code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment