Old 10-14-2020, 10:37 AM   #1
Malfunction
Human being with feelings
 
Malfunction's Avatar
 
Join Date: Sep 2020
Posts: 149
Default Snippets dont work in VSCODE

I downloaded lokasennas and mespotines code snippets. I know its some kind of .codesnippets file. I put it in the ...\AppData\Roaming\Code\User\snippets

They are detected in VS Code as some kind of global codesnippets. But they dont seem to work. I have set the document type to LUA. And all kinds of crazy settings in the setting.json file.

Should I look for another IDE or quit programming?
Malfunction is offline   Reply With Quote
Old 10-14-2020, 10:58 AM   #2
Meo-Ada Mespotine
Human being with feelings
 
Meo-Ada Mespotine's Avatar
 
Join Date: May 2017
Location: Leipzig
Posts: 6,630
Default

I probably can not help but could you provide the link to the snippets?
Maybe this gives clues to those who know vscode.
__________________
Use you/she/her.Ultraschall-Api Lua Api4Reaper - Donate, if you wish

On vacation for the time being...
Meo-Ada Mespotine is offline   Reply With Quote
Old 10-14-2020, 03:16 PM   #3
Malfunction
Human being with feelings
 
Malfunction's Avatar
 
Join Date: Sep 2020
Posts: 149
Default

aha, I have the wrong operating system!!( windows 10)
Attached Images
File Type: png Untitled.png (21.2 KB, 113 views)
Malfunction is offline   Reply With Quote
Old 10-15-2020, 07:45 AM   #4
solger
Human being with feelings
 
solger's Avatar
 
Join Date: Mar 2013
Posts: 5,857
Default

Quote:
Originally Posted by Malfunction View Post
They are detected in VS Code as some kind of global codesnippets. But they dont seem to work.
What exactly isn't working with the snippets?

Quote:
Originally Posted by Malfunction View Post
aha, I have the wrong operating system!!( windows 10)
If I remember correctly, the user snippets are independent from the extensions (like the lua-intellisense one shown in your screenshot).
Also, keep in mind that there are other lua extension options available like, for instance, vscode-lua, etc. (if the 'lua-intelisense' one isn't working)
__________________
ReaLauncher
solger is offline   Reply With Quote
Old 10-15-2020, 07:57 AM   #5
Meo-Ada Mespotine
Human being with feelings
 
Meo-Ada Mespotine's Avatar
 
Join Date: May 2017
Location: Leipzig
Posts: 6,630
Default

I should also mention, that I don't maintain code-snippets and the Mespotine-ones were made by someone else.
So they are probably outdated and do not reflect the latest state.
__________________
Use you/she/her.Ultraschall-Api Lua Api4Reaper - Donate, if you wish

On vacation for the time being...
Meo-Ada Mespotine is offline   Reply With Quote
Old 10-15-2020, 07:59 AM   #6
solger
Human being with feelings
 
solger's Avatar
 
Join Date: Mar 2013
Posts: 5,857
Default

Another option besides using code snippets is to search for functions here: https://www.extremraym.com/cloud/reascript-doc/
Then copy the code you need (via left click) and paste it into the IDE.
__________________
ReaLauncher
solger is offline   Reply With Quote
Old 10-15-2020, 08:54 AM   #7
Malfunction
Human being with feelings
 
Malfunction's Avatar
 
Join Date: Sep 2020
Posts: 149
Default

[QUOTE=solger;2353224]What exactly isn't working with the snippets?

When I type >reaper
a long list of suggestions are supposed to show up.
Malfunction is offline   Reply With Quote
Old 10-16-2020, 06:35 AM   #8
Malfunction
Human being with feelings
 
Malfunction's Avatar
 
Join Date: Sep 2020
Posts: 149
Default

Regarding the .codesnippets file
VSCode says there is "1 problem is this file"
All the global snippets files have this one problem.

And this is the problem.
Attached Images
File Type: png 43.png (30.9 KB, 81 views)
Malfunction is offline   Reply With Quote
Old 10-16-2020, 07:18 AM   #9
Malfunction
Human being with feelings
 
Malfunction's Avatar
 
Join Date: Sep 2020
Posts: 149
Default

Found the problem.
the codesnippets files contained html code
They had the correct extension name (.codesnippets ) when they were downloaded, which is why the confusion.
I messed up when downloading from github. Case closed.

Last edited by Malfunction; 10-16-2020 at 07:29 AM.
Malfunction is offline   Reply With Quote
Old 10-16-2020, 01:36 PM   #10
Meo-Ada Mespotine
Human being with feelings
 
Meo-Ada Mespotine's Avatar
 
Join Date: May 2017
Location: Leipzig
Posts: 6,630
Default

Yeah, this messed-up-download-problem is a pita. I had this numerous times as well...


BTW:
I just realized, that you removed the links to the snippets, could you readd them into this thread?
Just so others can use them as well and can find them, when they're interested in it.
__________________
Use you/she/her.Ultraschall-Api Lua Api4Reaper - Donate, if you wish

On vacation for the time being...
Meo-Ada Mespotine is offline   Reply With Quote
Old 10-16-2020, 02:25 PM   #11
Malfunction
Human being with feelings
 
Malfunction's Avatar
 
Join Date: Sep 2020
Posts: 149
Default

https://github.com/slsenseless/ReaSc...scode_snippets
Malfunction is offline   Reply With Quote
Old 10-16-2020, 03:07 PM   #12
Meo-Ada Mespotine
Human being with feelings
 
Meo-Ada Mespotine's Avatar
 
Join Date: May 2017
Location: Leipzig
Posts: 6,630
Default

Thnx
__________________
Use you/she/her.Ultraschall-Api Lua Api4Reaper - Donate, if you wish

On vacation for the time being...
Meo-Ada Mespotine is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 06:21 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.