# Double-clicking on Pascal files in CGE editor, to open them in Lazarus, reliably opens them in proper project

**URL:** https://forum.castle-engine.io/t/double-clicking-on-pascal-files-in-cge-editor-to-open-them-in-lazarus-reliably-opens-them-in-proper-project/485
**Category:** News
**Created:** [December 30, 2021, 6:05pm UTC](https://forum.castle-engine.io/t/double-clicking-on-pascal-files-in-cge-editor-to-open-them-in-lazarus-reliably-opens-them-in-proper-project/485 "2021-12-30T18:05:03Z")
**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: [December 30, 2021, 6:05pm UTC](https://forum.castle-engine.io/t/double-clicking-on-pascal-files-in-cge-editor-to-open-them-in-lazarus-reliably-opens-them-in-proper-project/485/1 "2021-12-30T18:05:03Z")

</div>

| [![CGE Editor Preferences - new Lazarus](https://castle-engine.io/wp/wp-content/uploads/2021/12/Zrzut-ekranu-z-2021-12-30-01-22-38-200x151.png)](https://castle-engine.io/wp/wp-content/uploads/2021/12/Zrzut-ekranu-z-2021-12-30-01-22-38.png "CGE Editor Preferences - new Lazarus") |

Thanks to the [related Lazarus issue being fixed by Juha Manninen](https://gitlab.com/freepascal.org/lazarus/lazarus/-/issues/39338), our [editor](https://castle-engine.io/manual_editor.php) can now open Pascal files in the proper Lazarus project reliably if you use Lazarus \>= 2.2.

We also query Lazarus version, to activate new behavior only for new Lazarus. You should see your Lazarus version in the editor preferences window.
