[GoLang] Set a space at the beginning of the comment

1.First of all

Even if I googled, the solution (GoLand's official help) did not hit easily, so I wrote it. Personally, I sometimes forget about it when I installed GoLand on another PC, which is quite a problem.

1-1. What happens if you read this article

Spaces are automatically inserted at the beginning of comments when formatting, which makes it easier.

1-2. Target readers

People who are suffering from being unable to automatically put a space at the beginning of a comment in GoLand.

2. GoLand settings

Here is the official help Let me quote the formula.

  1. Open the settings window (File | Settings). 2.Editor|Code style|Click Go.
  2. Click the Other tab.
  3. Select the checkbox to add leading spaces to the comment.
  4. In the field, except for the comment space, click the Add button.
  5. Enter the name of the prefix you want to add as an exception (for example, easyjson).
  6. Click OK. code_style_add_leading_space_to_comments.png

This will put a blank line at the beginning of the comment when formatting.

reference

Official Help

Recommended Posts

[GoLang] Set a space at the beginning of the comment
Get UNIXTIME at the beginning of today with a command
Shout Hello, Reiwa! At the beginning of Reiwa
How to put a line number at the beginning of a CSV file
The beginning of cif2cell
Take a peek at the processing of LightGBM Tuner
Tasks at the start of a new python project
Image crawling summary performed at the speed of a second
[Stable at the beginning of the month] Considering the purchase timing of funded investment
Let's take a look at the feature map of YOLO v3
First Python 3 ~ The beginning of repetition ~
The story of writing a program
What is the XX file at the root of a popular Python project?
[Error] The size of tensor a (4) must match the size of tensor b (3) at non-singleton dimension 0
Get a datetime instance at any time of the day in Python
Set up a server that processes multiple connections at the same time
[Understanding in 3 minutes] The beginning of Linux
[pyqtgraph] Set the size ratio of the graph
Learning notes from the beginning of Python 1
Measure the relevance strength of a crosstab
Omit BOM from the beginning of the string
A quick overview of the Linux kernel
[python] [meta] Is the type of python a type?
I read the implementation of golang channel
A memo explaining the axis specification of axis
Python Basic Course (at the end of 15)
Set the process name of the Python program
Get the filename of a directory (glob)
The story of blackjack A processing (python)
Notice the completion of a time-consuming command
Learning notes from the beginning of Python 2
The story of IPv6 address that I want to keep at a minimum
I want to set a life cycle in the task definition of ECS
I want to add silence to the beginning of a wav file for 1 second
What to do if (base) is displayed at the beginning of the Mac terminal
How to calculate the volatility of a brand
Get a lot of Twitter tweets at once
A set of integers that satisfies ax + by = 1.
Combinatorial optimization --Typical problem-- Partition of a set problem
Set the range of active strips to the preview range
Get the caller of a function in Python
Visualize the inner layer of a neural network
DJango Memo: From the beginning (creating a view)
Make a copy of the list in Python
Find the number of days in a month
A note about the python version of python virtualenv
Send Gmail at the end of the process [Python]
The story of making a lie news generator
Set a fixed IP in the Linux environment
Finding the beginning of Abenomics from NT magnification 2
[At Coder] Solve the problem of binary search
Calculate the probability of outliers on a boxplot
[Python] A rough understanding of the logging module
Output in the form of a python array
At the time of python update on ubuntu
The story of making a mel icon generator
Remove specific strings at the end of python
Finding the beginning of Abenomics from NT magnification 1
A discussion of the strengths and weaknesses of Python
Set the output destination of the execution result to Vim started as a modeless window
Collect cat images at the speed of a second and aim for the Cat Hills tribe