Giter Club home page Giter Club logo

golandtipsandtricks's Introduction

GoLand Tips & Tricks

This repository is a collection of tips & tricks for GoLand that can be tried any time by users.

Feel free to contribute or open issues for various features that you'd like to see added.

How to use?

Each file contains a small description of what to do.

There are two types of important comments:

  • // Step X. -> this allows you to perform actions in a certain order
  • // E.g. -> this allows you to know what to do at that specific point

List of Tips&Tricks

The tips and tricks can be found divided by a few major categories:

Completion

Tip number Contents New in
001 Import a package without typing its name
002 Smart Type Completion
003 Postfix Completion
004 Method-like Completion
005 (Custom) Live Templates. Use of builtin completion templates helpers
006 Partial Match Completion
007 Completion with Tab
008 Completion for type-assertion
009 Parameter name auto-generation
010 Date/Time completion 2020.3

Editing

Tip number Contents New in
001 Cyclic Expand Word / Cyclic Expand Word (Backward)
002 Parameter Info for functions and structs
003 Language Injections
004 Go Templates support
005 Create undefined type. Use multi-cursor for struct tag Live Template.
006 Extend/Shrink Selection
007 Add Selection for Next Occurrence
008 Completion in comments
009 Function/struct literals wrapping/chopping styles 2020.2

Inspections

Tip number Contents New in
001 Detect and navigate to duplicate tags of fields in a structure 2020.2
002 Inspection for int to string conversion (e.g. string(int)) 2020.2
003 Inspection for lost context cancel call 2020.3
004 Extended support for printf-style calls to pkg/errors, logurs, and zap 2020.3

Go Modules

Tip number Contents New in
001 Go mod completions support. Inspection from the IDE for local paths.
002 Support for retract directive. 2020.3

Navigation

Tip number Contents New in
001 Navigate to File. Switcher. Recent Files. Recent Locations.
002 Navigate to File. Structure Pop-up. Select in.
003 Type Hierarchy. Call Hierarchy
004 Navigate to/from symbols referenced in documentation comments 2020.2

Refactoring

Tip number Contents New in
001 Implement Interface
002 Change Signature refactoring. Move refactoring
003 Extract Interface refactoring
004 Introduce Constant/Variable refactoring. Inline refactoring

Running, testing and debugging

Tip number Contents New in
001 Completion in breakpoints
002 Generate test for function. Use auto-test for testing changes.
003 Debugger Labels
004 Benchmark support
005 Smart Step Into. Debugger custom values for types using DebugString/String/Error methods.
006 Goroutines dumping 2020.3
007 Run subtests in table tests 2020.3
008 Add inline watches. 2020.3
009 Testify support for different test suites containing same method name. 2020.3

Web support

Tailwind

Tip number Contents New in
001 Tailwind CSS support. 2020.3

Database support

Tip number Contents New in
001 MongoDB databases can be queried using SQL. 2020.3

Plugins

Kubernetes

Tip number Contents New in
001 Pod logs can now be downloaded. 2020.3
002 Open Console and Run Shell actions are now available. 2020.3

Markdown

Tip number Contents New in
001 Mermaid.js can be rendered in Markdown files. 2020.3

Setup the IDE for tips/comments/shortcut highlighting

To see the shortcuts in a nicer manner, setup the following TODOs:

  • // E.g. -> \b(E\.g\. )\b.*, Case Sensitive, Color #35C03B
  • // Step x. -> \b(Step \d\. )\b.*, Case Sensitive, Color #35C03B
  • // Shortcut: -> \b(Shortcut: )\b.*, Case Sensitive, Color #2B80C0

Contributions welcomed

Do you have a favorite tip or trick, and you want to see it here?

Send a PR at any time, and we'll add it!

License

Apache 2, see the license.

golandtipsandtricks's People

Contributors

dlsniper avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.