topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • Friday March 29, 2024, 10:18 am
  • Proudly celebrating 15+ years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Author Topic: best code snippet tool that works with any program  (Read 7103 times)

kmkmdon

  • Participant
  • Joined in 2014
  • *
  • default avatar
  • Posts: 5
    • View Profile
    • Donate to Member
best code snippet tool that works with any program
« on: August 20, 2014, 10:54 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

c.gingerich

  • Supporting Member
  • Joined in 2011
  • **
  • Posts: 748
    • View Profile
    • The Blind House
    • Donate to Member
Re: best code snippet tool that works with any program
« Reply #1 on: August 20, 2014, 02:10 PM »
Phrase Express is the one I hear most often

kmkmdon

  • Participant
  • Joined in 2014
  • *
  • default avatar
  • Posts: 5
    • View Profile
    • Donate to Member
Re: best code snippet tool that works with any program
« Reply #2 on: August 20, 2014, 02: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.

rjbull

  • Charter Member
  • Joined in 2005
  • ***
  • default avatar
  • Posts: 3,199
    • View Profile
    • Donate to Member
Re: best code snippet tool that works with any program
« Reply #3 on: August 20, 2014, 05:07 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:
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.

kmkmdon

  • Participant
  • Joined in 2014
  • *
  • default avatar
  • Posts: 5
    • View Profile
    • Donate to Member
Re: best code snippet tool that works with any program
« Reply #4 on: August 20, 2014, 05:50 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?

rjbull

  • Charter Member
  • Joined in 2005
  • ***
  • default avatar
  • Posts: 3,199
    • View Profile
    • Donate to Member
Re: best code snippet tool that works with any program
« Reply #5 on: August 21, 2014, 04:56 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
https://www.donation...dex.php?topic=2598.0

link to jgpaiva's AHK tools
https://www.donation...dex.php?topic=3461.0

Harrie's review of Instant Text, and following posts
https://www.donation...dex.php?topic=2631.0

Word AutoCompleter
https://www.donation...1036.msg6713#msg6713 (mentions IntelliComplete, AutoTyping, LetMeType, AllChars, Type Pilot)

Auspex
https://www.donation....msg231091#msg231091
« Last Edit: August 22, 2014, 05:10 AM by rjbull »

kmkmdon

  • Participant
  • Joined in 2014
  • *
  • default avatar
  • Posts: 5
    • View Profile
    • Donate to Member
Re: best code snippet tool that works with any program
« Reply #6 on: August 22, 2014, 09:08 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 :)

Thanks for your help

kmkmdon

  • Participant
  • Joined in 2014
  • *
  • default avatar
  • Posts: 5
    • View Profile
    • Donate to Member
Re: best code snippet tool that works with any program
« Reply #7 on: August 22, 2014, 02:30 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/