N
N
Ne7Le4Der2022-04-14 15:40:10
Visual Studio Code
Ne7Le4Der, 2022-04-14 15:40:10

How to disable auto spaces when import'e?

import { Message } from 'src/common/enum/message';

If an interface\function\class, whatever is imported automatically (by clicking the appropriate line in the tooltip), spaces are placed around the imported object. What parameter in the settings is responsible for this, and can it be disabled?

import {Message} from 'src/common/enum/message';

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Viktorovich, 2022-04-14
@shotlandec1980

Plugin Prettier - Code formatter , all settings
Create a file .prettierrcin the root of the project

// https://prettier.io/docs/en/options.html#bracket-spacing
{
  "bracketSpacing": false
}

An alternative , but I don’t remember which options are responsible for this functionality

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question