Making the most of Notepad++ & Sublime

Post » Fri Nov 16, 2012 4:53 pm

So as not to hijack the "Trouble With Papyrus on Notepad++" thread, I'm starting a new thread with JustinOther's comment.

Or go with Sublime Text 2. It's dreeeeamy...

I just took another look at http://www.sublimetext.com/... is it really worth the $60? (More than the price of Skyrim for which I'm using it to mod? ;))

For comparison, I'm used ot using Visual Studio for my work stuff, but I don't expect that kind of functionality for Papyrus... but one could dream. But I've been surprised by how functional Notepad++ is with Papyrus, it's better than I was expecting.

Here's some plug-ins I use for Notepad++:
http://sourceforge.net/projects/npp-compare/
http://sourceforge.net/projects/sourcecookifier/
And of course Autocomplete & Syntax Highlighting from http://www.creationkit.com/Notepad%2B%2B_Setup

Anyone have additional suggestions?

So just comparing to Notepad++, what's better about Sublime? Does it offer more advanced coding functionality? (Like some of the Notepadd plugins.) Or it is just more editing functions?


Please: This thread is not to debate the best IDE (I don't care to have that debate.) I'm just curious what Sublime has to offer from people who have used both.
User avatar
Jeff Tingler
 
Posts: 3609
Joined: Sat Oct 13, 2007 7:55 pm

Post » Fri Nov 16, 2012 10:07 am

I just took another look at http://www.sublimetext.com/... is it really worth the $60? (More than the price of Skyrim for which I'm using it to mod? ;))
You don't need to purchase it to use it. The only difference between the registered and non-registered version is that every 20'th save or so will prompt a "Purchase now?" window which you can close and get back to work.
So just comparing to Notepad++, what's better about Sublime? Does it offer more advanced coding functionality? (Like some of the Notepadd plugins.) Or it is just more editing functions?

Please: This thread is not to debate the best IDE (I don't care to have that debate.) I'm just curious what Sublime has to offer from people who have used both.
Snippets are great as you can type OnC- and a list of event are made visible to select for autocomplete including the OnContainerChanged event you were after including all its arguments such you don't have to look in the Wiki to know you've got the arguments right. Compiling a script with Sublime will not prompt the CMD window, but will show the text at the bottom of the screen (closed with ESC). Also, setting up sublime for Papyrus was substantially easier than it was with N++. Anyhow, I tried both, was using both for awhile, and ended up sticking with Sublime Text (partially 'cause I've got the OSX version too for portability and have it set up with Papyrus syntax).
User avatar
CSar L
 
Posts: 3404
Joined: Fri Nov 09, 2007 9:36 pm

Post » Fri Nov 16, 2012 12:25 pm

I have been using Sublime for the past two years now, and I can say this about it: It's the single best text-editor I have ever used on Windows.

Been using it primarily for C/C++ (with clang & cmake) and of course for Papyrus (with a custom plugin to enforce my own coding guidelines).

Although in general, the story with editing Papyrus code is very rudimentary. We've got, besides (textual/literal) auto-completions, basically nothing... So it comes down to text-editing capabilities -- and here Sublime shines with the likes of vim and Emacs.
User avatar
Kelly Tomlinson
 
Posts: 3503
Joined: Sat Jul 08, 2006 11:57 pm

Post » Fri Nov 16, 2012 10:52 am

Sublime is positively great for professional coders, but if you're not one, I wouldn't drop the cash on it. It can be used free, as mentioned.

I'm all about Notepad++, I use it 4 eretang.
User avatar
CxvIII
 
Posts: 3329
Joined: Wed Sep 06, 2006 10:35 pm

Post » Sat Nov 17, 2012 2:08 am

Thanks JustinOther & Xetrill! As JustinOther pointed out, it's free to try, so I might as well.

Xetrill, any experience using Sublime with Java? (Though, maybe just best to stick with Eclipse or Netbeans.)

Is there a way to get the "jump to defintion" with Sublime? That is one feature I really appreciate.
User avatar
Lyndsey Bird
 
Posts: 3539
Joined: Sun Oct 22, 2006 2:57 am

Post » Fri Nov 16, 2012 4:01 pm

Okay, some comments on Sublime:

So far, here are some things I am really liking about Sublime:
1. As mentioned, the snippet auto complete is fantastic!!
2. Love the block commenting! (Something I really missed from VS and thought I wouldn't get in a text editor.)
3. Autocomplete even shows my own variables!
4. The "Build" option is much cleaner

The "Projects" concept would be a great addition! Their concept of a Project is the traditional make a folder and put all your stuff in it. Of course that's how I do all my non-Papyrus projects, but obviously a problem for a Skyrim project. I use a unique prefix for each of my mods, but I only see an "exclude" option, not a file "include" option. Anyone work out a good solution for Papyrus/Skyrim mod project?

JustinOther thanks for mentioned Sublime!

And to answer my own question, maybe this will work for Java Development too, and if so, then definately worth the $60!

Edit: Been playing with the Project option and it seems to remember which files you have open, making it usable. Would be nice if I could filter out the 10,000 Skyrim source files and just have mine showing, but this is certainly better environment than I had before! (Almost feeing professional here ;))
User avatar
SexyPimpAss
 
Posts: 3416
Joined: Wed Nov 15, 2006 9:24 am

Post » Sat Nov 17, 2012 12:58 am

Java:
Nope, not a Java guy. Though, I used it for some C# projects, then again only to make some quick edits. That's because VS+ReSharper is hard to beat. I'd say the same applies to Eclipse/Netbeans. For one, you'd loose refactoring -- definitely something I wouldn't like.

Projects:
The "include" option was just recently added with the release of v2.0. It works just like the exclude-patterns, just with the opposite logic. Documentations is still lacking, but the community http://docs.sublimetext.info/en/latest/index.html.

Anyway, if you haven't already, you should install http://wbond.net/sublime_packages/package_control and then discover anything that might interest you.

Also, I'd recommonend the package AAAPackageDev, it provides more than you might infer from its name -- like language files for Sublime's settings, snippets and other file types.

Auto-Complete:
Indeed its useful even without IntelliSense. Though context-aware auto-completion could be added through a plugin. I was hoping someone more experienced with Python (and Sublime's API) would write such a plugin.

Plugins (or packages) for your favorite web-programming language and even C++ with clang (SublimeClang) already exist.

Hmm, that also somewhat answers your question about a Goto-Definition feature. If anybody has build it, then you can probably install it through package control.

Price:
60$ is definitely much for something - that at least in theory - notepad could do. Then again, I consider it not payment for a product I use daily, but rather a way to show my appreciation to its developer (Jon Skinner) and of course as a reward too.

Edit/Projects again: Consider something like ...
Spoiler
// Skyrim.sublime-project{	"folders":	[		{			"path": "/G/Skyrim/Data/Scripts/Source",			"name": "Scripts",			"folder_exclude_patterns": ["backup", "temp"],			"file_exclude_patterns": [				"*.flg", "TIF_*.psc", "SF_*.psc", "QF_*.psc", "PF_*.psc", "*.pex", "*.hgignore"			]		},		{			"path": "/D/Profiles/Xetrill/Files/My Games/Skyrim",			"name": "Profiles",			"folder_exclude_patterns": ["saves"],			"file_exclude_patterns": ["*.bak", "*.dat", "*.rar", "*.html"]		},		{			"path": "/G/Skyrim/Data/Interface",			"name": "Interface",			"folder_exclude_patterns": ["skyui", "exported"],			"file_exclude_patterns": ["*.swf", "*.gfx"]		},		{			"path": "/G/Skyrim/Data/SKSE",			"name": "SKSE",			"file_exclude_patterns": ["*.dll", "*.disabled"]		},		{			"path": "/C/Users/Xetrill/AppData/Local/Skyrim",			"name": "AppData"		},		{			"path": "/G/Skyrim",			"name": "GameRoot",			"folder_exclude_patterns": ["*"],			"file_exclude_patterns": ["*.exe", "*.dll", "*.disabled", "*.vdf", "*.asi"]		}	],	"build_systems":	[		{			"name": "Papyrus"		}	]}
that combined with Goto-Anything (Ctrl+P) is just ... useful. Also that was from before the 2.0 release so before include-patterns where supported again (v1 had them).
User avatar
RUby DIaz
 
Posts: 3383
Joined: Wed Nov 29, 2006 8:18 am

Post » Fri Nov 16, 2012 7:36 pm

Thanks for the tips Xetrill! The Project "include" options works great, exactly how I wanted it to work. I'll definately take a look at the Package Control and see what's available.

So far, I'd say it was worth installing Sublime Text.
User avatar
patricia kris
 
Posts: 3348
Joined: Tue Feb 13, 2007 5:49 am


Return to V - Skyrim