Thursday, April 25, 2024
HomeGolangRun Scratch Information With Non-Commonplace-Library Packages, Take away Areas from Go Directives,...

Run Scratch Information With Non-Commonplace-Library Packages, Take away Areas from Go Directives, and Extra in GoLand 2023.1 EAP #2


Early Entry Program

The second GoLand 2023.1 EAP construct is now out there! 

You will get it by way of the Toolbox App, obtain it from our web site, use a snap bundle (for Ubuntu), or from inside GoLand, choose Verify IDE updates for: Early Entry Program in Settings | Look & Conduct | System Settings | Updates.


Obtain GoLand 2023.1 EAP

Run scratch information with non-standard-library packages

Now you can run scratch information with non-standard-library Go dependencies. 

Once you copy your code from a undertaking file to a scratch file and press the Run button, GoLand creates a Run configuration with the -overlay flag. This flag is used with a JSON file that maps file paths to go.mod and go.sum in your authentic undertaking.

Take away main areas from Go directives

GoLand now has an inspection and a quick-fix that can assist you to to detect and take away main areas in Go directives like //go:embed.

Intention Preview: Help for extra intention actions and quick-fixes

Within the earlier launch, we enabled the Intention Preview performance by default. This characteristic permits you to immediately see how your code will probably be altered when you apply the IDE’s recommendations.

It’s now doable to preview extra intention actions and quick-fixes:

  • Create perform
  • Create technique
  • Fill all fields

The preview seems while you open the record of obtainable intention actions and hover over an choice. You’ll be able to disable this characteristic by urgent Ctrl+Q / F1 whereas the record of intention actions is open, and it’ll stay disabled till you flip it again on in the identical means.

Efficiency: Scanning information to index in good mode 

We’ve improved the IDE startup expertise by performing the Scanning information to index… course of in good mode, which makes the IDE’s full vary of performance out there a lot earlier within the startup course of. When opening a undertaking, GoLand makes use of current caches out of your earlier session with the undertaking and concurrently seems to be for information to index. If no modifications are discovered within the scan, the IDE will probably be totally prepared so that you can work, eliminating the delays that have been beforehand attributable to indexing on startup. 

Editor: Customized RegExp-based inspections

Now you can use common expressions to create your individual search and substitute inspections. These inspections will be particularly helpful for highlighting style-based or formatting-based issues.

Go to Settings | Editor | Inspections and press the + icon. Choose Add RegExp Search Inspection from the record and also you’ll be directed to a dialog the place you’ll be able to arrange your new inspection. Choose the specified language, use hints from the panel on the left to construct a RegExp, and designate the required alternative. You can too specify the way you need the IDE to spotlight them within the undertaking.

Person expertise

Full IDE zoom

It’s now doable to zoom into and out of GoLand completely, rising or lowering the dimensions of all UI components directly. From the principle menu, choose View | Look and regulate the IDE’s scaling.

Moreover, you may make it simpler to name these actions by assigning them customized shortcuts in Settings | Keymap | Primary Menu | View | Look.

New Bear in mind measurement for every device window setting

We’ve launched a brand new structure choice that means that you can unify the width of the facet device home windows or retain the flexibility to freely regulate their sizes as you customise your structure. The brand new Bear in mind measurement for every device window checkbox is out there in Settings | Look | Look & Conduct | Instrument Home windows.

Within the new UI, the setting is switched off by default, that means that the device home windows are displayed that includes the unified width and their sizes stay fixed while you swap between them. Within the previous UI, the choice is switched on, so the device home windows have completely different widths, although you’ll be able to select to align them at any time just by turning the setting off.

Seen file identify pane when tabs are hidden within the new UI

We’ve fine-tuned the person expertise of the brand new UI by including a pane that shows the identify of the file that’s presently open when editor tabs are hidden.

The highest toolbar is not seen in Zen and Distraction Free modes within the new UI. 

That’s it for at present. We’d love to listen to what you consider the brand new options. Get in contact with us on Twitter, depart your feedback right here, open a problem in our tracker, or drop us a message within the Gophers Slack #goland channel. Thanks!



RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments