Visual Studio for Lua editing

I’ve always used Notepad++ for Lua editing. It did the job, I was used to it. I liked it. The problem is that when you have a large project and you want to quickly jump between files and search for stuff it kind of slows you down.

So now I use Visual studio. Here’s how.

1. Install Lua syntax plugin
2. Generate Project files using Premake.

Obviously premake and visual studio weren’t exactly made for this shit – so you have to fool it a bit. Here’s my premake files (you don’t need to download anything else).

Basically I have a folder called ‘proj’ next to my garrysmod folder, and the premake script looks in “../garrysmod/lua/*” and adds all the lua files. It’s a lot faster than adding them all manually.

And when your files change you just run the .bat again to syncronise the project files.

<3 premake

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s