Developer Cheerio Posted October 11, 2013 Developer Share Posted October 11, 2013 Sublime is a really fast multi-platform free text editor with a ton of useful features. It's also the most popular editor used to write lua here at Klei. This guide will give you an introduction to what I think are some of it's most useful features. This is not an introduction to modding or scripting however I do hope that both beginning and expert modders might find this guide useful . Setup:1. Install Don't Starve for Windows, Mac or OSX.2. Install Sublime.3. Unzip dont_starve_sublime_project.zip to your 'dont_starve/mods' folder.4. Launch Sublime and click on 'project->open_project' and open the 'dont_starve.sublime-project' file. SidebarThe tree view on the left side is called the Sidebar. If you don't see it, you can turn it on in the 'view->sidebar' menu option. The sidebar lets you browse both the script files used in 'Don't Starve' as well as any script files from any mods you may have downloaded. What I really like about the sidebar is how it opens files just by clicking them. Goto Anything - Shortcut='CTRL+P'This dialog lets you search for files and preview their contents. Once you start getting used to the filenames in the project, it becomes much faster to open them through this window. Goto Line - Shortcut='CTRL+G'This dialog lets you jump to a line within a file. This is really useful when scripting because whenever you have a script error, 'Don't Starve' tells you the file and line number. Find - Shortcut='CTRL+F'This dialog lets you search the currently opened file for a given string and will outline anything that matches it. You can then press 'F3' to jump through each match. Find in Files - Shortcut='CTRL+SHIFT+F'This dialog is similar to the 'Find...' dialog except it searches through all files. Most development I do in 'Don't Starve' involves reusing and extending existing scripts, so this dialog becomes incredibly useful at finding what I'm looking for. And that's it! These are just a few of Sublime's features. It has many others and a huge plugin development community. If you do give it a try or if you have a different favorite ide, let me know. I'm always looking for ways to write code faster/smater/better . For more Sublime tutorials, check out Perfect Workflow in Sublime Text 2. Link to comment Share on other sites More sharing options...
This topic is now archived and is closed to further replies.
Please be aware that the content of this thread may be outdated and no longer applicable.