SlickEdit Product Discussion > SlickEdit®
Problems with golang indentation?
rr0:
Hi Everyone, I’m a Slickedit novice & a registered Pro user for a handful of years now. I’m using Mac OS + emacs keyboard emulation.
For grins I’m trying v26 on a golang project that I’ve been working on. Set up the workspace & project and have triple checked the obvious language config settings in Google Go > Editing/Formatting, but indentation just doesn’t seem to be working for me. Indentation is working correctly in a C++ project, btw.
For example, this is what the editor is generating when I’m writing go code. Pressing tab doesn’t indent, either.
func testFunc(cfg initConfig) error {
if cfg.a != Ҡ{
return errors.New(“hello worldâ€)
}
}
What am I missing?
Clark:
Smart indenting for Go is definitely not working as well as it should. We will look into this.
Clark:
What platform(s) do you need? Had to build new installers to make this much better.
rr0:
Hi Clark, thank you for working on this. I’m currently using Intel Mac OS.
Clark:
Download and install this new installer:
http://support.slickedit.com/outbound/2600/se_26000006_mac-intel.dmg
Navigation
[0] Message Index
[#] Next page
Go to full version