Create a Scratch file from selection

Create scratches faster and get the contents you want to test pre-populated

How to use:

Select a portion of the code, press ⌘⌥⏎ (macOS) / Ctrl+Alt+Enter (Windows/Linux), then choose Create new scratch file from selection to quickly create a new scratch containing the same code.


Related Resources

Create getters and setters for struct fields
Create getters and setters for struct fields
Generate the support code to access fields indirectly, via getters and setters
Improve Code Readability and Navigation
Improve Code Readability and Navigation
Discover how to manage code visibility with code folding in Go
Create a function in another package
Create a function in another package
Type a non-existing function name and generate its implementation in a package of your choice