# Visual Studio Code and LSP server improvements

**URL:** https://forum.castle-engine.io/t/visual-studio-code-and-lsp-server-improvements/798
**Category:** News
**Created:** [April 29, 2023, 9:20am UTC](https://forum.castle-engine.io/t/visual-studio-code-and-lsp-server-improvements/798 "2023-04-29T09:20:04Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![michalis](https://forum.castle-engine.io/user_avatar/forum.castle-engine.io/michalis/32/3_2.png) [@michalis](https://forum.castle-engine.io/u/michalis)
#### Post date: [April 29, 2023, 9:20am UTC](https://forum.castle-engine.io/t/visual-studio-code-and-lsp-server-improvements/798/1 "2023-04-29T09:20:04Z")

</div>

| [![VS Code running Castle Game Engine task](https://forum.castle-engine.io/uploads/default/original/2X/6/66b27ed8aadef129dc0d6b62795fae7b00571593.png)](https://castle-engine.io/wp/wp-content/uploads/2023/04/Zrzut-ekranu-z-2023-04-29-02-11-53.png "VS Code running Castle Game Engine task") |

A big personal news from me is that I switched from using [Emacs](https://www.gnu.org/software/emacs/) for almost-everything-I-do-on-computer to [VS Code](https://code.visualstudio.com/) about a month ago. There have been a few reasons (yes, [including this](https://github.com/features/copilot)). I was exploring _VS Code_ already, finally decided to see what happens if I try to use it for everything and now I’m happy with the switch. No big miracles happened, but I feel various things work in _VS Code_ better out-of-the-box than my heavily-customized _Emacs_ ever could. I hope that my clone in an alternative reality will maintain my [~20 years worth of Lisp code](https://github.com/michaliskambi/elisp) 🙂

For _Castle Game Engine_, this sparked some small improvements that will likely benefit everyone who prefers to use general text editors (whether _VS Code_, _Emacs_, or _Vim_).

1. I extended our [VS Code](https://castle-engine.io/vscode) manual, as I explored how to configure it best.

2. I improved our [build tool](https://castle-engine.io/build_tool) with additional option (`--windows-robust-pipes`) useful for integration of build tool in any external tool (like VS Code) on Windows.

3. I was also doing improvements to our Pascal LSP server, both for _Emacs_ and _VS Code_ and other text-editors. The server is now easier to configure, it auto-detects OS, CPU and fixes eventual setting of `OS=windows` (to `win32` or `win64`).
