Welcome Guest.   Make a donation to an author on the site September 02, 2014, 04:38:24 PM  *

Please login or register.
Or did you miss your validation email?


Login with username and password (forgot your password?)
Why not become a lifetime supporting member of the site with a one-time donation of any amount? Your donation entitles you to a ton of additional benefits, including access to exclusive discounts and downloads, the ability to enter monthly free software drawings, and a single non-expiring license key for all of our programs.


You must sign up here before you can post and access some areas of the site. Registration is totally free and confidential.
 
Check out and download the GOE 2007 Freeware Challenge productivity tools.
   
   Forum Home   Thread Marks Chat! Downloads Search Login Register  
Pages: [1]   Go Down
  Reply  |  New Topic  |  Print  
Author Topic: best code snippet tool that works with any program  (Read 677 times)
kmkmdon
Participant
*
Posts: 5

View Profile Give some DonationCredits to this forum member
« on: August 20, 2014, 10:54:49 AM »

Hi everyone.

Wondering what you guys are using, if any, for storing code snippets. I'd like to able to type a keyword and hit a special keyboard shortcut and voila, my code snippet is pasted into whatever application window I'm typing in. It would be best if it would let you define parameters that can change within the snippet. I mainly need this when I write ad-hoc SQL queries but love to be able to use it in any application.

Any suggestions? Thanks
Logged
c.gingerich
Supporting Member
**
Posts: 478



see users location on a map View Profile WWW Give some DonationCredits to this forum member
« Reply #1 on: August 20, 2014, 02:10:30 PM »

Phrase Express is the one I hear most often
Logged

kmkmdon
Participant
*
Posts: 5

View Profile Give some DonationCredits to this forum member
« Reply #2 on: August 20, 2014, 02:58:58 PM »

I was looking for a for free / open source version. The closest simple app I got word expander http://www.wordexpander.net which does not support variables unfortunately. The other option is ArsClip http://www.joejoesoft.com/vcms/97/ but it is more of a clipboard manager application though it has permanent clip feature with variables and also hard to grasp at once. Others are AutoHotKey type applications.

There does not seem to be any simple dedicated free snippet code manager with variable support out there. Maybe @mouser or someone from this community will take the challenge.
Logged
rjbull
Charter Member
***
Posts: 2,749

View Profile Give some DonationCredits to this forum member
« Reply #3 on: August 20, 2014, 05:07:19 PM »

other option is ArsClip http://www.joejoesoft.com/vcms/97/ but it is more of a clipboard manager application though it has permanent clip feature with variables and also hard to grasp at once.
ArsClip is great, but I haven't tried it with variables.  There are many threads on DC about text expanders...  some of them heated.

There does not seem to be any simple dedicated free snippet code manager with variable support out there.
You might check out Konrad Papala's Ka Type In, which is free, but I don't know if its concept of variables matches yours, and it's getting quite old:
Quote
Ka Type In lets you define frequently used text snippets, ready to be typed into any application, document, web form. Just create a set of items, like e-mail addresses, zip code, phone number, etc. and you'll never have to type it again. The application can also auto-complete sentences, for example you can enter "Bes" and hit Ctrl+; (customizable) to expand it to "Best regards...".

In addition, you can create more sophisticated templates - with variables, which will cause a form to be shown, enabling you to setup those variables.
Logged
kmkmdon
Participant
*
Posts: 5

View Profile Give some DonationCredits to this forum member
« Reply #4 on: August 20, 2014, 05:50:25 PM »

just checked out Ka Type In. That's exactly the type of application I was looking for. Unfortunately it worked in notepad but failed in SSMS query window. Any other suggestion similar to this?
Logged
rjbull
Charter Member
***
Posts: 2,749

View Profile Give some DonationCredits to this forum member
« Reply #5 on: August 21, 2014, 04:56:42 PM »

Any other suggestion similar to this?
[Edit at UK time 2014-08-22, 11:06:-]
Better suggestion than below: just try searching DC for snippets.  That will find numerous existing threads.
[/Edit]

The obvious one is PhraseExpress, which is free for personal use.  I've not actually used any free ones that use templates or macros, that you don't know about already.  However, some suggestions:
  • Comfort Keys
    Shareware.  I only briefly tried its template feature and seem to recall I found it a bit limited for what I wanted at the time.  Try before you buy...
  • TwinkiePaste
    Shareware, modestly priced.  Not tried by me.
  • AceText
    Shareware by the author of the famous EditPad editors. Not tried by me.
  • Text Accelerator
    Shareware, modestly priced, by the author of True Launch Bar.  Not tried by me. 
  • NoteTab Light
    This is an indirect solution.  NoteTab Light is a free text editor. You need the payware Pro version to get the full macro language, with extended clipboard functionality, but the free version should be enough to see if it's feasible to use it to make your own templates and snippets and send them to the clipboard.

Why not review some of DC's many threads on text expanders?  Here are some older ones to start you off:

jgpaiva's abbreviations importer
http://www.donationcoder....bb/index.php?topic=2598.0

link to jgpaiva's AHK tools
http://www.donationcoder....bb/index.php?topic=3461.0

Harrie's review of Instant Text, and following posts
http://www.donationcoder....bb/index.php?topic=2631.0

Word AutoCompleter
http://www.donationcoder....opic=1036.msg6713#msg6713 (mentions IntelliComplete, AutoTyping, LetMeType, AllChars, Type Pilot)

Auspex
http://www.donationcoder....25182.msg231091#msg231091
« Last Edit: August 22, 2014, 05:10:52 AM by rjbull » Logged
kmkmdon
Participant
*
Posts: 5

View Profile Give some DonationCredits to this forum member
« Reply #6 on: August 22, 2014, 09:08:35 AM »

I gave up and decided to use Ars Clipboard for now. If it doesn't work, I'll check out PhraseExpress

I reviewed some of those thread but couldn't find anything useable. Lots of AutoHotKey based solutions that doesn't survive the time test, even if you try to recompile with the latest AutoHotKey. Maybe I'll write my own one day if I get enough frustrated and motivated smiley

Thanks for your help
Logged
kmkmdon
Participant
*
Posts: 5

View Profile Give some DonationCredits to this forum member
« Reply #7 on: August 22, 2014, 02:30:17 PM »

update: for SQL server management studio at least, my search is over. Apex SQL Complete does exactly what I needed and it is a free tool. It has a snippet feature where you can define variables to be prompted for user to enter.

http://www.apexsql.com/free/
Logged
Pages: [1]   Go Up
  Reply  |  New Topic  |  Print  
 
Jump to:  
   Forum Home   Thread Marks Chat! Downloads Search Login Register  

DonationCoder.com | About Us
DonationCoder.com Forum | Powered by SMF
[ Page time: 0.035s | Server load: 0.16 ]