# sublime text plugin for q

**URL:** <https://forum.kx.com/t/sublime-text-plugin-for-q/10871>\
**Category:** Community Support\
**Tags:** kdb-and-q\
**Created:** [March 10, 2016, 2:42pm UTC](https://forum.kx.com/t/sublime-text-plugin-for-q/10871 "2016-03-10T14:42:00Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Komsit\_Prakobph](https://avatars.discourse-cdn.com/v4/letter/k/848f3c/32.png) [@Komsit\_Prakobph](https://forum.kx.com/u/Komsit_Prakobph)\
**Post date:** [March 10, 2016, 2:42pm UTC](https://forum.kx.com/t/sublime-text-plugin-for-q/10871/1 "2016-03-10T14:42:00Z")

</div>

I’m sharing my sublime text plugin which I have been developing using at work and at home for a while. Among many features, I find these most useful:

- syntax highlighting

- REPL

- auto complete

- connection management

- f1-f5 shortcuts for help and print variables, environments

- memory and time stats on status bar

Source code and some documentations are in github:

[https://github.com/komsit37/sublime-q](https://github.com/komsit37/sublime-q)

You can install via package control:

[https://packagecontrol.io/packages/q%20KDB](https://packagecontrol.io/packages/q%20KDB)

Hope you find it useful. Let me know if you have any feedbacks or issues!

Komsit

![]()

---

<div class="post-metadata">

**Author:** ![kuentang](https://avatars.discourse-cdn.com/v4/letter/k/bc8723/32.png) [@kuentang](https://forum.kx.com/u/kuentang)\
**Post date:** [March 11, 2016, 8:58am UTC](https://forum.kx.com/t/sublime-text-plugin-for-q/10871/2 "2016-03-11T08:58:00Z")

</div>

Nice,

Really appreciate your work. I like especially the possibility to install via package control.

Kin

Sent from my iPhone

---

<div class="post-metadata">

**Author:** ![yogeshg91](https://avatars.discourse-cdn.com/v4/letter/y/919ad9/32.png) [@yogeshg91](https://forum.kx.com/u/yogeshg91)\
**Post date:** [March 11, 2016, 9:12am UTC](https://forum.kx.com/t/sublime-text-plugin-for-q/10871/3 "2016-03-11T09:12:00Z")

</div>

Thanks!  
This looks amazing.

**Yogesh Garg**

---

<div class="post-metadata">

**Author:** ![samsogade](https://avatars.discourse-cdn.com/v4/letter/s/848f3c/32.png) [@samsogade](https://forum.kx.com/u/samsogade)\
**Post date:** [March 13, 2016, 4:22am UTC](https://forum.kx.com/t/sublime-text-plugin-for-q/10871/4 "2016-03-13T04:22:00Z")

</div>

Nice one! Can the inline popups be closed by pressing Esc instead of Cmd+E?

---

<div class="post-metadata">

**Author:** ![daniel\_krizian1](https://avatars.discourse-cdn.com/v4/letter/d/858c86/32.png) [@daniel\_krizian1](https://forum.kx.com/u/daniel_krizian1)\
**Post date:** [April 1, 2016, 12:24am UTC](https://forum.kx.com/t/sublime-text-plugin-for-q/10871/5 "2016-04-01T00:24:00Z")

</div>

Thanks Komsit, just switched!  
One question: how can I execute q commands from console within Sublime? I can only see Ctrl+Enter on text in .q file.

Many thanks!

Daniel

---

<div class="post-metadata">

**Author:** ![Komsit\_Prakobph](https://avatars.discourse-cdn.com/v4/letter/k/848f3c/32.png) [@Komsit\_Prakobph](https://forum.kx.com/u/Komsit_Prakobph)\
**Post date:** [April 7, 2016, 5:25pm UTC](https://forum.kx.com/t/sublime-text-plugin-for-q/10871/6 "2016-04-07T17:25:00Z")

</div>

Hi Morten,&nbsp;

Thanks! I’ve added esc shortcut in the latest version.&nbsp;  
[https://github.com/komsit37/sublime-q/releases/tag/0.2.7](https://github.com/komsit37/sublime-q/releases/tag/0.2.7)

It should be available in package control in a few hours. After that, package control should automatically upgrade your plugin after you restart sublime text.

Komsit

---

<div class="post-metadata">

**Author:** ![Komsit\_Prakobph](https://avatars.discourse-cdn.com/v4/letter/k/848f3c/32.png) [@Komsit\_Prakobph](https://forum.kx.com/u/Komsit_Prakobph)\
**Post date:** [April 7, 2016, 5:28pm UTC](https://forum.kx.com/t/sublime-text-plugin-for-q/10871/7 "2016-04-07T17:28:00Z")

</div>

Hi Daniel - executing q commands from console is not supported. You can only send text from editor.

Komsit

---

<div class="post-metadata">

**Author:** ![amir\_e\_khandani](https://avatars.discourse-cdn.com/v4/letter/a/c4cdca/32.png) [@amir\_e\_khandani](https://forum.kx.com/u/amir_e_khandani)\
**Post date:** [August 7, 2018, 7:20pm UTC](https://forum.kx.com/t/sublime-text-plugin-for-q/10871/8 "2018-08-07T19:20:00Z")

</div>

Hi everyone,&nbsp;  
Thanks to Komsit for the very nice package. Very well done&nbsp;

I had two question and appreciate if people here can give me some guidance on:

1. what does it take to add functionality to be able to go to function definition to this package?&nbsp;

2. Or to show the docstring. Btw, does anyone have experience with any how to automatically generate documenation in kdb? I our firm we have something based on Javadoc but I much rather to use an open-source better support tool if available&nbsp;

Thanks

Amir
