GoLand 2018.3

シグネチャーのリファクタリング機能を更新、testifyを使用可能、Google App Engineを実行・デバッグ
11月 27, 2018
新バージョン

機能

New Change Signature refactoring

  • The new Change Signature refactoring gives you many ways to modify a function, method, or method specification signature in just a few clicks. You can easily change their names and add, remove, reorder, and rename parameters. When you refactor a method specification, GoLand will even ask you if you want implementations to be updated as well.
  • Improved refactorings
  • Rename refactoring - The Rename refactoring gives you an insight into the potential conflicts that might be introduced by the renaming, if any.
  • Inline refactoring - GoLand now highlights inlined code after applying the Inline refactoring, to help you catch what has actually happened.

Debugging GAE apps

  • GoLand now lets you easily run and debug Google App Engine (GAE) applications locally. Also added a new App Engine project template.

Core dumps support

  • GoLand makes exploring core dumps easier without any third-party tools, because all you need to do is to select Run | Open Core Dump. To create crash dumps automatically, just enter GOTRACEBACK=crash in the Environment field in the Run configuration settings.

Testify support

  • Now you can run suites and methods as regular test functions, directly from the editor. The Comparison Failure window helps explore diffs between expected and actual values for failed assertions. In a related change, Empty test file, Test for function, Tests for file, and Tests for package are available via the Generate popup menu.

Code inspections

  • Unhandled Error - The Unhandled Error code inspection alerts you about functions or methods that return an error whenever the error isn’t being checked.
  • Unreachable Code - The Unreachable Code inspection detects parts of code that can never be executed.

Add format string argument

  • Add format string generates a placeholder via popup - The Add format string argument intention action generates a placeholder for any provided expression via a popup. It inserts the placeholder into a format string and passes the expression as an argument for the placeholder. Also, you can enable code folding for format strings that will replace placeholders with the corresponding arguments.

Generate intention actions

  • Generate Constructor - The Generate Constructor intention action generates functions for creating values of the struct type. Generate Constructor, as well as Generate getter/setter and Generate getter and setter are available via the Generate popup menu.
  • Generate getter and setter - The intention actions Generate getter/setter and Generate getter and setter now create boilerplate code and let you customize the pointer/non-pointer receiver type and its name.

Code completion

  • GoLand 2018.3 adds method-like completion for functions. When you have value t of type T and write t.Foo, you can look through functions that accept value of type T as the first argument. Invoke the Basic completion (Ctrl + Space + Space) twice to see all of the available completion options.

Code editor

  • Complete Current Statement - Complete Current Statement now inserts the required trailing comma automatically in any composite literals (such as struct, slice, etc.) and puts the caret on the position of the next statement. Just press Cmd + Shift + Enter on macOS or Ctrl + Shift + Enter on Windows/Linux.
  • Spot shadowed/shadowing methods - New gutter icons let you better spot shadowed/shadowing methods of embedded types. You can also navigate back and forth in one click, or by pressing Cmd+U on macOS or Ctrl+U on Windows/Linux.
  • Don't format this set of files - In GoLand 2018.3 and further versions, you can exclude a specific set of files from the code actions Reformat code, Optimize imports, and Rearrange.

Go templates (html/template)

  • As you work with Go templates (html/template), enjoy code completion, find usages, the Rename refactoring, and improved code formatting.

Debugger updates

  • The debugger provides code completion, inspections, and quick-fixes for the Evaluate Expression dialog and the Watchers panel.

Support for Mozilla rr

  • Added support for Mozilla rr in the debugger on Linux. It records program executions until you see a failure, so that you can then replay the failing execution as many times as you need under a debugger. As soon as you install Mozilla rr, everything works in a click. Put a breakpoint and choose the Record and Debug option from the Run/Debug gutter icon in the editor. This action opens the Debugger tab in the Run window with a dedicated Rewind button, which allows you to run the program backwards until the previous breakpoint is reached.

Diagrams support - Diagrams allow you to visualize and explore:

  • Go module dependencies (available only in the context menu of a go.mod file).
  • Imports and exports in-context in JavaScript and TypeScript projects.
  • Tables and their relationships in Databases and SQL.

Search and navigation

  • Improved Search Everywhere popup - The Search Everywhere popup (Double Shift) has a new UI and works faster thanks to an asynchronous approach. It also provides quick access to Go to type, Go to file, Go to symbol, and Find. Use the TAB key to switch between them.
  • Find and Replace in Path dialogs - The Find in Path and Replace in Path dialogs are better at supporting multiline code snippets.

Multiline TODO comments

  • GoLand 2018.3 supports multiline TODO comments for Go, JavaScript, TypeScript, CSS, and SCSS.

GitHub Pull Requests

  • The new GitHub Pull Requests tool window shows all pull requests from GitHub with their descriptions, current labels, changed files, and assignees. There, you can search by state, assignee, author, after, before, or use sorting. The IDE also helps you create a new local branch or open a pull request on GitHub. To open a new tool window, select View Pull Requests in the menu VCS | Git.

Tools

  • Docker plugin - You can now use CLI options for the build part: in the Dockerfiles run configuration, you will find the new Build options field. For now, the following CLI options are supported: cache-from, cpu-shares, cpuset-cpus, force-rm, label, memory, memory-swap, shm-size, no-cache, pull, quiet, and rm.
  • Kubernetes plugin update - As you work with Helm resource template files, enjoy code completion, the Rename refactoring, code inspections, and quick-fixes.

Accessibility

  • Added new a High-contrast theme, also, the IDE gets better support for screen readers. GoLand now allows line numbers, VCS annotations, breakpoints, and other gutter icons to be read by a screen reader.

JavaScript and TypeScript

  • Autoimports in JavaScript - GoLand now automatically adds imports not only for symbols defined in your project, but also for symbols from the project’s dependencies.
  • Parameter hints in JavaScript - Added parameter hints in JavaScript.
  • Better 'null' and 'undefined' check - The inspection Object is null or undefined notifies you when you get a TypeError because a method is invoked on a value that is undefined or null, or it is passed to a function, or its property is used.
  • Completion in package.json - GoLand provides suggestions for the latest version, as well as previous ones for the dependencies in package.json.

Cassandra database support

  • GoLand now supports Cassandra databases.

More changes

  • The Attach action is available via the Open Project popup. It lets you attach a directory to already opened projects. Click File | Open, and choose the project you want to attach.
  • Drag files and projects to the Welcome screen to open them.
  • The Activity Monitor shows how much CPU the various subsystems and plugins are consuming: Help | Activity Monitor.
  • The Plugins page in Settings | Plugins has been completely reworked, including all the functionality and UI.
  • Indexing is now significantly faster.
Change Signature refactoring

GoLand

Go言語で開発するためのクロスプラットフォームIDE

GoLandは、次の製品にも含まれています。

ご質問がありますか?

今すぐ JetBrains ライセンススペシャリストとライブ チャット