Saturday, May 18, 2024
HomeGolangNew Editor Settings, Actions on Save for New Tasks, and Internet Improvement...

New Editor Settings, Actions on Save for New Tasks, and Internet Improvement options in GoLand 2023.1 EAP #6


Early Entry Program

The sixth GoLand 2023.1 EAP construct is out!

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


Obtain GoLand 2023.1 EAP

Editor

Choice to specify the location of pasted content material

For v2023.1, we’ve fine-tuned the person expertise when pasting a line that was copied or minimize with out choice. There’s now a particular setting that means that you can management the location of the pasted content material. 

In Settings/Preferences | Superior Settings, discover the Editor part and choose the specified conduct for the Paste motion from the drop-down checklist. 

Possibility to point out whitespaces solely in chosen code

There’s a brand new Choice checkbox in Settings/Preferences | Editor | Basic | Look | Present Whitespace that means that you can configure this setting in order that the IDE exhibits whitespaces as small dots solely when you choose code. 

UI: Setting to configure Actions on Save for brand new initiatives

GoLand 2023.1 EAP 6 provides an choice to predefine the conduct of Actions on Save for brand new initiatives. 

For this, go to File | New Tasks Setup | Preferences For New Tasks | Instruments | Actions on Save and choose which actions you need to be triggered when saving modifications in your future initiatives.

Internet improvement

Convert strings to template literals robotically

In GoLand 2023.1 your single- or double-quoted strings shall be robotically reworked into template literals everytime you kind ${. This works for uncooked strings in addition to for JSX properties.

Part imports added on copy-paste 

Once you copy and paste code from one file to a different, GoLand robotically copies and provides all of the required imports. This was beforehand the case with plain JavaScript, TypeScript, and React templates. In GoLand 2023.1 it now works for Vue, Svelte, Astro, and Angular templates, too.

Assist for TypeScript in Vue template expressions

This model consists of help for TypeScript in Vue template expressions. The Vue template expressions now sync to lang=”ts” added to script tags. Consequently, GoLand can higher consider TypeScript, offering preferences and related refactorings matching what’s contained in the script tag. You might have observed earlier than that there have been variations between settings and refactorings for pure .js and .ts information. Now the lang attributes will match.

Listed below are a number of of the enhancements it’s possible you’ll discover:

  • Inline casts can be utilized.
  • Strict null checks in templates with help for kind narrowing.
  • Strict null checks for part props.
  • Preferences / Settings unification throughout each scripts and templates.
  • Sorts proven in Fast Documentation and different UI parts ought to work the identical throughout scripts and templates.
  • Template expressions now help literal varieties, like true as a substitute of boolean.
  • Template expressions now use TypeScript refactorings as a substitute of JavaScript ones.

That’s it for as we speak. 

We’d love to listen to what you concentrate on the brand new options. Get in contact with us on Twitter, go away 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