-
Notifications
You must be signed in to change notification settings - Fork 203
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can import autocompletion not insert semicolon? #806
Comments
Now I don't feel so bad about my lack of using them sometimes (or maybe I should be cause that means I'm inconsistent). Up for grabs 🌹 Implementer guidanceRecently work was done to make import autocomplete preserve whitespace #805 . Similar approach should be taken here 🌹 |
FWIW, I love that you do this 👍 You leave fantastic comments for the next person to come along! |
A +1 from me, it should preserve every allowed code style. The auto-complete system could either read an existing linter style or use a |
@ApricumMedia, there is no Besides, since we're using Also, to be fair, we do support non-standard For the sake of completeness, here is the schema of interface FormatCodeSettings {
baseIndentSize?: number;
indentSize?: number;
tabSize?: number;
newLineCharacter?: string;
convertTabsToSpaces?: boolean;
indentStyle?: "None" | "Block" | "Smart";
insertSpaceAfterCommaDelimiter?: boolean;
insertSpaceAfterSemicolonInForStatements?: boolean;
insertSpaceBeforeAndAfterBinaryOperators?: boolean;
insertSpaceAfterConstructor?: boolean;
insertSpaceAfterKeywordsInControlFlowStatements?: boolean;
insertSpaceAfterFunctionKeywordForAnonymousFunctions?: boolean;
insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis?: boolean;
insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets?: boolean;
insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces?: boolean;
insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces?: boolean;
insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces?: boolean;
insertSpaceAfterTypeAssertion?: boolean;
insertSpaceBeforeFunctionParenthesis?: boolean;
placeOpenBraceOnNewLineForFunctions?: boolean;
placeOpenBraceOnNewLineForControlBlocks?: boolean;
} In the meantime, consider using some sort of 'save-on-prettify' tool with the prettifier you like. We're using prettier and found it to be rather nice. |
any news? |
I don't really use semi-colons, can we detect this on the line and if a semicolon is missing skip inserting it?
The text was updated successfully, but these errors were encountered: