MV How to save a plugin into *.js file?

Hi!
Probably I'm a bot, I tried to find solutions but I just couldn't.
In some threads, people share their plugin, just pasting their code into the thread, and when I try to copy it into Notepad++ and then "Save as" called something.js, I put it into the Plugin Manager, and it doesn't work... I tried multiple times with multiple codes, it works for other people but it doesn't work for me. What am I doing wrong?
Here's a very simple example:
JavaScript:
/*:
 * @plugindesc For testing.
 * @help Hi!
 */
alert('Test plugin loaded successfully!');
You could try to save that as a plugin, then reply with that file attached to your post. That may help to show us what's going wrong for you (if anything) when saving the file. 👋
when I try to copy it into Notepad++ and then "Save as" called something.js, I put it into the Plugin Manager, and it doesn't work
So I'd like to try to clarify a few bits of your terminology. When you say "I put it into the Plugin Manager," does that mean that you save your js file into the plugins folder, then inside the editor you do successfully see it listed as a plugin for you to select? You're not, like, trying to paste the text of the plugin into something in the Plugin Manager, right?

Then when you say "it doesn't work," you mean that even after you see the plugin listed in the Plugin Manager and you select it, the code doesn't take effect? As opposed to you don't see it listed as a plugin or something crashes.

Do you know that after doing anything with your plugins (or, really any changes to your game) you need to save the project and start a new playtest? You won't see any changes if you load a save game.
I saved as a plugin, a js file, into the plugins folder, etc. So I did it correctly. I don't know why, but now it works. I did the same thing before, it listed in the Plugin Manager but it didn't show the descriptions, and it didn't take effect. I don't know what I did wrong, but I did the same thing now and now it works... Interesting.
Thank you for the help 🙂
also keep in mind, if you save a code, sometimes it does nothing, in compare
as it could require another plugin which can be a patch or only work in
combination of other codes or events to make things works.

so you need to read it carefully if it doesn't need another plugin or codes
inside the event to make it work, otherwise, it does indeed nothing.

Original thread: https://forums.rpgmakerweb.com/threads/how-to-save-a-plugin-into-js-file.149455/