# Save grid settings per context

**URL:** https://librepcb.discourse.group/t/save-grid-settings-per-context/893
**Category:** Improvement Ideas
**Created:** [February 25, 2025, 12:43pm UTC](https://librepcb.discourse.group/t/save-grid-settings-per-context/893 "2025-02-25T12:43:00Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![parenthetical](https://avatars.discourse-cdn.com/v4/letter/p/839c29/32.png) [@parenthetical](https://librepcb.discourse.group/u/parenthetical)
#### Post date: [February 25, 2025, 12:43pm UTC](https://librepcb.discourse.group/t/save-grid-settings-per-context/893/1 "2025-02-25T12:43:00Z")

</div>

currently the grid is set globally and whatever it was last set to is what you see everywhere.

It would be great if the grid settings were remembered for each context, so each board saves it’s own grid settings, and each footprint the same.

The main use case is that some boards and footprints are laid out in mm and some in mils and it would save a lot of confusion if each remembered which it had last had its grid set to.

If we get a more sophisticated grid in the future, (such as major and minor grids) then those settings should also be contextual to each board or footprint.

---

<div class="post-metadata">

### Author: ![ubruhin](https://avatars.discourse-cdn.com/v4/letter/u/c89c15/32.png) [@ubruhin](https://librepcb.discourse.group/u/ubruhin)
#### Post date: [February 25, 2025, 1:23pm UTC](https://librepcb.discourse.group/t/save-grid-settings-per-context/893/2 "2025-02-25T13:23:32Z")

</div>

The grid settings are already stored per schematic and per board, so they will be restored when opening a project the next time.

Thus I suspect you are talking only about the library editor. There the settings are not stored in packages and symbols to avoid unnecessary “noise” in the files, leading to annoying diffs when using version control systems.

However, I would agree the grid settings of library elements could be stored locally on the computer. So at least when you open a library element the next time on the same computer, the settings will be restored. If you agree and have a GitHub account, I’d be happy to receive this feature request as an issue 🙂

EDIT: There’s already an issue open for that:

> <https://github.com/LibrePCB/LibrePCB/issues/1366>
>
> \##### VERSION / OS / ENVIRONMENT
> LibrePCB Version: 1.1.0
> Git Revision: 18a…3d4589
> Build Date: 2024-04-03T09:45:54
> Build Author: LibrePCB CI
> Qt Version: 5.15.2 (built against 5.15.2)
> CPU Architecture: x86\_64
> Operating System: Windows 10 Version 2009
> Platform Plugin: windows
> TLS Library: OpenSSL 1.1.1v 1 Aug 2023
> OCC Library: OCCT 7.7.2
> 
> 
> 
> \##### SUMMARY
> When I enter to package editing mode, grid is preset to default without respect to previous settings.
> 
> 
> \##### STEPS TO REPRODUCE
> Open Library editor, select some package and doubleclick to edit it.
> Change grid for some new settings, save package and close package editor.
> Reopen it and check grid settings.
> 
> 
> \##### EXPECTED RESULTS
> I expected same grid settings as I set in previous.
> 
> 
> \##### ACTUAL RESULTS
> Grid is set to default (2,54 mm) always.
