But as you want to edit with code (I guess VS Code), maybe try to use remote editing.
This is much more convenient than using a samba share.
Don’t forget that samba is only part of openHABian, because most users aren’t very familiar with GNU/Linux but need access from Windows Desktop.