BASIC

Author Topic: Template / Snippet Tool in IDE  (Read 3012 times)

Offline aonyn

  • Mr. Polyvector
  • ***
  • Posts: 136
    • View Profile
Template / Snippet Tool in IDE
« on: 2010-Apr-21 »
Hi Gernot,

This is not a crucial request, but could be very handy.
As I have said in introductions, I am from the PureBasic community, and this request comes directly from a feature I like very much in the PureBasic IDE.

It is an additional tab on the right side window of the IDE, to add along with  "Jumps", "Files", "Web", and "Debug".
The new tab would be "Templates" as it is called in PureBasic, although "Snippets could also be appropriate, and unique to GLBasic.

This tab in purebasic displays a workspace with a treeview.
The treeview is built by the user to add folders and organize code snippets which are commonly used by the user, which can be easily and directly added to any code being worked on in the ide.
In PureBasic, this is done simply by double clicking the entry in the treeview, the snippet is placed where the cursor is currently sitting in the project code.

I have attached a screenshot which will hopefully explain better than I can with words.
It shows the treeview I describe on the sidebar, the edit dialog for the code snippet / template, as well as the same code inserted in my main edit window in the ide.

This system is very nice for storing functions / procedures which are used frequently.

Please let me know if this interests you enough to consider, and if so, I will try to give you more detail on how it works.

regards,
Dave



[attachment deleted by admin]
For by grace are ye saved through faith, and that not of yourselves: it is the gift of God: Not of works, lest any man should boast. -Ephesians 2:8-9

Offline Quentin

  • Prof. Inline
  • *****
  • Posts: 915
    • View Profile
Re: Template / Snippet Tool in IDE
« Reply #1 on: 2010-Apr-21 »
Very good idea ! You have my vote.

Offline Kitty Hello

  • code monkey
  • Administrator
  • Prof. Inline
  • *******
  • Posts: 10682
  • here on my island the sea says 'hello'
    • View Profile
    • http://www.glbasic.com
Re: Template / Snippet Tool in IDE
« Reply #2 on: 2010-Apr-21 »
Not a bad idea. I'll see if I can make something similar.

Offline aonyn

  • Mr. Polyvector
  • ***
  • Posts: 136
    • View Profile
Re: Template / Snippet Tool in IDE
« Reply #3 on: 2010-Apr-21 »
Hi Gernot,

I think this will be a very good addition to the GLBasic IDE.
Thank you for considering implementing it.
If you need anything explained further than you can gather from the screenshot, please ask here and I will try to explain it with more detail.

@ Ocean - Hi, it is nice to see a fellow PB user here. :-)

regards,
Dave
For by grace are ye saved through faith, and that not of yourselves: it is the gift of God: Not of works, lest any man should boast. -Ephesians 2:8-9

Offline aonyn

  • Mr. Polyvector
  • ***
  • Posts: 136
    • View Profile
Re: Template / Snippet Tool in IDE
« Reply #4 on: 2010-Apr-21 »
Thanks for the welcome Ocean!

I don't feel quite so much a stranger in a strange land now, knowing other PB users are here too.
Under your avatar, "I'd rather be flying...".
Are you a pilot? A flight simmer?

I ask because I have a long background in flightsim development, and I am an avid flight simmer.
So perhaps we have more in common than PB. :)

regards,
Dave
For by grace are ye saved through faith, and that not of yourselves: it is the gift of God: Not of works, lest any man should boast. -Ephesians 2:8-9

Offline aonyn

  • Mr. Polyvector
  • ***
  • Posts: 136
    • View Profile
Re: Template / Snippet Tool in IDE
« Reply #5 on: 2010-Apr-21 »
Hi Ocean,

That is very cool!
I use X-Plane as well, been using X-Plane since ver5, and still using ver9 frequently.
I have also at least tried about every other flight sim available since the early '90s. (I loved the flight unlimited series - it is a shame Looking Glass Studios is no more.)

I started in development with Victory Simulations, and Xtreme Air Racing as a 3D modeler, and as lead artist for XAR2.
I have also worked with Abacus making addons for MSFS, and I was on the Fighter Ops team for several years, but left that project for personal reasons recently.

I would love to get a PPL, but between time and money, it seems I am always short of one or the other, but I still hope some day, I will get to it.

Anyway, it is very nice to meet you here.

regards,
Dave
For by grace are ye saved through faith, and that not of yourselves: it is the gift of God: Not of works, lest any man should boast. -Ephesians 2:8-9

Offline Schranz0r

  • Premium User :)
  • Administrator
  • Prof. Inline
  • *******
  • Posts: 5006
  • O Rly?
    • View Profile
Re: Template / Snippet Tool in IDE
« Reply #6 on: 2010-Apr-21 »
Yepp, good idea!
« Last Edit: 2010-Apr-21 by Schranz0r »
I <3 DGArray's :D

PC:
AMD RYzen 7 1700 @3.9Ghz, 16GB HyperX Fury 2666Mhz Ram, ASUS ROG GTX 1060 STRIX 6GB, Windows 10 Pro 64Bit, MSi Tomahawk B350 Mainboard

Offline aonyn

  • Mr. Polyvector
  • ***
  • Posts: 136
    • View Profile
Re: Template / Snippet Tool in IDE
« Reply #7 on: 2010-Apr-21 »
Hi Ocean,

Yes, MSFS is nice for sight seeing, but the fluid flight model and fluid instruments definately make X-Plane the correct choice for flying.
MSFS always feels like you are on rails by comparison, with the exception of a few fine 3rd party payware planes (like those from RealAirSimulations).

I am in Salisbury, Maryland USA. Perhaps one day I will come visit your side of the pond though. I have a couple of online friends in Germany, one lives in Ulm, and the other lives in Mannheim. So Germany will certainly be a destination when I do manage to travel.

regards,
Dave
For by grace are ye saved through faith, and that not of yourselves: it is the gift of God: Not of works, lest any man should boast. -Ephesians 2:8-9

Offline aonyn

  • Mr. Polyvector
  • ***
  • Posts: 136
    • View Profile
Re: Template / Snippet Tool in IDE
« Reply #8 on: 2010-Apr-21 »
Hi Ocean,

Sounds good, thanks. It is not in the near term plans, but it is something I want to do when I have the opportunity.

regards,
Dave
For by grace are ye saved through faith, and that not of yourselves: it is the gift of God: Not of works, lest any man should boast. -Ephesians 2:8-9