# VSCode extension for js rules and variables

**URL:** <https://community.openhab.org/t/vscode-extension-for-js-rules-and-variables/168387>\
**Category:** Beginners\
**Created:** [February 13, 2026, 2:15pm UTC](https://community.openhab.org/t/vscode-extension-for-js-rules-and-variables/168387 "2026-02-13T14:15:01Z")\
**Posts on this page:** 1\
**Showing post:** 21

<div class="post-metadata">

**Author:** ![s0170071](https://community.openhab.org/user_avatar/community.openhab.org/s0170071/32/20561_2.png) [@s0170071](https://community.openhab.org/u/s0170071)\
**Post date:** [July 24, 2026, 10:07pm UTC](https://community.openhab.org/t/vscode-extension-for-js-rules-and-variables/168387/21 "2026-07-24T22:07:35Z")

</div>

They do for me. But never mind, I updated the extension a little further so it now shows also references. Means: you hover over an item in a script and it shows where it is defined (items file ) and where its used.

 ![image](https://community-openhab-org.s3.dualstack.eu-central-1.amazonaws.com/original/3X/4/a/4af96cc4bd31ae82ad78d0bc2e56030c649f798b.png)

Its configurable and all. I bumped the version to 1.0.2 so you can check if you actually run it.

 ![image](https://community-openhab-org.s3.dualstack.eu-central-1.amazonaws.com/original/3X/6/9/69428ff062485e80925dfc2fdd788a3c10dcbc67.png)

To install: head over to this branch of my repo:

> **[GitHub - s0170071/openhab-vscode at release/1.0.2](https://github.com/s0170071/openhab-vscode/tree/release/1.0.2)**
>
> release/1.0.2

you will find the[.vsix file](https://github.com/s0170071/openhab-vscode/blob/release/1.0.2/openhab-1.0.2.vsix) there.  
To install it: (Vscode,Windows)

1. download the vsix file to your openhab machine
2. open vsc, connect to your openhab machine
3. hit F1 and enter Extensions: install from Vsix. Then browse to the vsix file
4. hit f1 again, enter developer: reload window

I will make PRs to the upstram repo, so maybe some of that new stull will make it to the official extension. Maybe not parsing variable states from log files as they feel the regex will break eventually (which it doesn’t)

A word of warning: this is new code. Seems to be working but consider it alpha. You are welcome to comment here.

---

_[View the full topic](https://community.openhab.org/t/vscode-extension-for-js-rules-and-variables/168387)._
