# Sublime Text and Kirby

**URL:** <https://forum.getkirby.com/t/sublime-text-and-kirby/8660>\
**Category:** Webdev\
**Created:** [September 30, 2017, 4:43pm UTC](https://forum.getkirby.com/t/sublime-text-and-kirby/8660 "2017-09-30T16:43:55Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![mauricehh](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/mauricehh/32/13439_2.png) [@mauricehh](https://forum.getkirby.com/u/mauricehh)\
**Post date:** [September 30, 2017, 4:43pm UTC](https://forum.getkirby.com/t/sublime-text-and-kirby/8660/1 "2017-09-30T16:43:56Z")

</div>

My dear Kirby friends,

two years ago I started a sublime text autocomplete/snippet package for Kirby 2. It worked pretty good but then I switched to Atom and didn’t update it for quite some time. Well… it didn’t take much time until I switched back to sublime. And now, with the latest bigger update of sublime, I’d like to reactivate that snippet-collection, which can be found here: [GitHub - mauricerenck/sublime-kirby2: Kirby CMS v2 snippets for sublime text](https://github.com/mauricerenck/sublime-kirby2)

It’s outdated and needs a lot of updates, I think. The problem, as so often, is a lack of time. So I’m searching for help this way. Maybe some of members of this community are sublime users, too and may be able to spend some time on updating the snippets with me. That would be so cool!  
If you’re interested, just message me here or at github or twitter (@mauricehh). So we could organize a bit. I’m eager to hear from you 🙂

---

<div class="post-metadata">

**Author:** ![thguenther](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/thguenther/32/16708_2.png) [@thguenther](https://forum.getkirby.com/u/thguenther)\
**Post date:** [September 30, 2017, 5:15pm UTC](https://forum.getkirby.com/t/sublime-text-and-kirby/8660/2 "2017-09-30T17:15:54Z")

</div>

It would be awesome having a generator that could output snippet collections for any application without manual fixes being necessary.

I started working on a Cheatsheet-based generator for the Atom snippets over here —  
maybe that could help you getting started: [https://github.com/medienbaecker/kirby-snippets/tree/generator](https://github.com/medienbaecker/kirby-snippets/tree/generator)

---

<div class="post-metadata">

**Author:** ![mauricehh](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/mauricehh/32/13439_2.png) [@mauricehh](https://forum.getkirby.com/u/mauricehh)\
**Post date:** [September 30, 2017, 5:47pm UTC](https://forum.getkirby.com/t/sublime-text-and-kirby/8660/3 "2017-09-30T17:47:48Z")

</div>

Ah! That’s a great idea, I’ll have a look. Thank you 🙂

---

<div class="post-metadata">

**Author:** ![mauricehh](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/mauricehh/32/13439_2.png) [@mauricehh](https://forum.getkirby.com/u/mauricehh)\
**Post date:** [October 5, 2017, 4:38pm UTC](https://forum.getkirby.com/t/sublime-text-and-kirby/8660/4 "2017-10-05T16:38:01Z")

</div>

For those who are interested: I updated the Package and it’s now up-to-date with more then 500 Kirby Snippets. I used casperjs to get the data and generate the snippets (thanks for the hint, @thguenther). You can find the script in the github-repo, too.

---

<div class="post-metadata">

**Author:** ![carstengrimm](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/carstengrimm/32/188_2.png) [@carstengrimm](https://forum.getkirby.com/u/carstengrimm)\
**Post date:** [October 5, 2017, 4:57pm UTC](https://forum.getkirby.com/t/sublime-text-and-kirby/8660/5 "2017-10-05T16:57:05Z")

</div>

Im not sure how maintained the vscode snippets are. But ideally we should kinda have some collection which displays different methods on integrating throughout the various editors.

---

<div class="post-metadata">

**Author:** ![mauricehh](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/mauricehh/32/13439_2.png) [@mauricehh](https://forum.getkirby.com/u/mauricehh)\
**Post date:** [October 5, 2017, 5:28pm UTC](https://forum.getkirby.com/t/sublime-text-and-kirby/8660/6 "2017-10-05T17:28:27Z")

</div>

If that’s possible, I don’t know how snippets are stored in vscode and how the syntax is. The casperjs script could be modified pretty easy, I think.  
The sublime snippets are also available via package manager, which requires them to have a certain structure in a git-repo, so it will be difficult to have one repository for all editors (without shipping all the vscode snippets, too).

---

<div class="post-metadata">

**Author:** ![carstengrimm](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/carstengrimm/32/188_2.png) [@carstengrimm](https://forum.getkirby.com/u/carstengrimm)\
**Post date:** [October 5, 2017, 8:16pm UTC](https://forum.getkirby.com/t/sublime-text-and-kirby/8660/7 "2017-10-05T20:16:21Z")

</div>

> [@What's your favorite editor?](https://forum.getkirby.com/t/whats-your-favorite-editor/4017/31):
>
> Also using VSC for quite some years now. With the php-debug extention you can even get a simple PHP debugger which sometimes can really help debugging while at the same time keeping the editor slimmer than a full IDE. Other “must have’s” that I discovered over the years: auto close tag auto rename tag document this paste and indent (sublime can do that natively) eslint open in github open in browser project manager (like sublimes project quick switch feature) setting sync php debug By the wa…

( [Kirby Visual Studio Code snippets based on Medienbaekers https://github.com/medienbaecker/kirby-atom/blob/master/snippets.json · GitHub](https://gist.github.com/Andi-Lo/cd0b3600dca48ea697a0be3c19e7f856) )

that’s what what was posted on the forums the other day. many functions i have been using were already auto-completeable and had descriptions. not sure if they are complete or not though  
😉

 ![2017-10-05_22-20-56](https://europe1.discourse-cdn.com/flex017/uploads/getkirby/original/2X/b/bf1f12f8786a720179afe0c98aabb250717c95bf.jpg)

---

<div class="post-metadata">

**Author:** ![mauricehh](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/mauricehh/32/13439_2.png) [@mauricehh](https://forum.getkirby.com/u/mauricehh)\
**Post date:** [October 6, 2017, 4:31pm UTC](https://forum.getkirby.com/t/sublime-text-and-kirby/8660/8 "2017-10-06T16:31:47Z")

</div>

So you mean that there already is an automplete for VSC, or that there should be?

---

<div class="post-metadata">

**Author:** ![carstengrimm](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/carstengrimm/32/188_2.png) [@carstengrimm](https://forum.getkirby.com/u/carstengrimm)\
**Post date:** [October 6, 2017, 4:43pm UTC](https://forum.getkirby.com/t/sublime-text-and-kirby/8660/9 "2017-10-06T16:43:43Z")

</div>

there’s one which can be enabled via custom snippets in VSC,… i was just adding that to the collection here… however i am not sure how complete that is…
