Auto complete/import Modules & Services


Features:

  • Auto complete for services
  • Auto complete for modules
  • Doesnt suggest for auto complete when writing variables or comments or strings
  • Supports command bar

README:

the first time you install this plugin it will pop up a screen like this, after pressing “Allow” please close the place that you’re currently in and then open it again :happy1:
image


Download for free:

Credits:

Baileyeatspizza – learned a few tricks by reading his plugin’s source code
EditDistance.lua – used this to make better auto complete suggestions

36 Likes

Important update:

  • Fixed tons of bugs so if youve already installed the plugin please make sure to update it.
3 Likes

This is awesome! LETS TROT ROBLOX, WE MUST TROT!

4 Likes

Why use this over Service Autocomplete (code completions)?

2 Likes

Service Autocomplete has an issue where if you press enter after getting a suggestion for a service it puts your cursor at the start of the script, so I made this plugin as a temporary solution and to learn more about ScriptEditorService.

Ive added some features to the plugin that others plugins dont have since the release

1 Like

Small update:

  • plugin wont suggest services when youre writing comments now!
2 Likes

Hi, great job on creating your own service autocomplete in such a short time but in the future if you could commit to the github repo that’d help significantly!

also, make sure to turn on auto update for the future :star: since my plugin worked for months until an overnight flag change :-/

hey! if you read my plugin’s code you can see that its very messy and hard coded which is why I decided not to do that

Update

  • Rewrote the whole plugin
  • Fixed all the bugs with previous version
  • Added a few optimizations
  • Added Auto complete for requiring modules
1 Like

This is a really nice module, thanks for making this

1 Like

Update

1 Like

Quick Update

  • If a module is inside the script the plugin will use script as the path when requiring the module

edit:

  • If a module is inside StarterPlayer.StarterPlayerScripts it will switch to Players.LocalPlayer.PlayerScripts (only in local scripts and module scripts and scripts with runcontext set to client)

Doesn’t this plugin already exists? Service Autocomplete (code completions)

Ah, I see but that I believe that was fixed, atleast for the latest version.

My plugin has more features to offer right now, please the read the post

At least this lets you get the modules, I will go use your’s

also I will modify your’s to make it work with my require() function which is this

local ReplicatedStorage = game:GetService("ReplicatedStorage")

require(ReplicatedStorage:WaitForChild("xAPI"))()

return function(name: string)
	local modules = getmodules()
	
	for _, v in modules do
		if v.Name == name then
			return require(v)
		else
			error("Got an invalid module")
		end
	end
end
1 Like

okay! modifying the plugin should be pretty easy, just look for the line where it does something like this and edit it to your liking

`local {moduleName} = require({path})`

This function seems suspiciously similar to mine :thinking: … took me months to figure this out so if this is based on my code please credit in some form :upside_down_face:

bro is trynna get the source code for himself :skull:

6 Likes

I did learn this method by reading your plugin’s code, nice job on finding this method its a good one, I’ll give you credit since you asked me to