Author Topic: Improvement for  (Read 548 times)

Dan

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 2919
  • Hero Points: 153
Improvement for
« on: February 11, 2025, 02:18:30 PM »
In Go this sort of thing is pretty common:

Code: [Select]
func Test_X(<params>) {
   mockFunc1 := func(<params>) {
      // code goes here, but indent and SmartPaste
      // typically line up with declaration of mockFunc1
   }
}

In the cases I've been dealing with, mockFunc1 is usually a mock REST API function, but it's not uncommon in Go for other things. But it would be terrific if SmartPaste and other indenting functions worked with it.

Clark

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 7041
  • Hero Points: 534
Re: Improvement for
« Reply #1 on: February 12, 2025, 12:55:04 PM »
We will look into this

Dan

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 2919
  • Hero Points: 153
Re: Improvement for
« Reply #2 on: February 12, 2025, 01:00:15 PM »
That would be great. Also, in general "return" does not expand. I'm not sure why. Go puts the return type(s) at the end of the signature, but it seems like it's just not in whatever the expansion list is.