xgqfrms™, xgqfrms® : xgqfrms's offical website of cnblogs! xgqfrms™, xgqfrms® : xgqfrms's offical website of GitHub!

vscode & TypeScript auto format bug All In One

vscode & TypeScript auto format bug All In One

{
  "[typescript]": {
    "editor.formatOnSave": true,
    "editor.formatOnPaste": true
  },
  "typescript.format.insertSpaceAfterOpeningAndBeforeClosingEmptyBraces": false,
}

typescript format

auto insert space after opening and before closing empty braces ❌

let test = 'abc';

console.log('test =', test);

// 模块声明 
export { };

let test = 'abc';

console.log('test =', test);

// 模块声明
export {};

new version

// declare module
export {};

let test = 'abc';
console.log('test =', test);

// 模块声明
// export {};
let test = 'abc';
console.log('test =', test);
export {};
// 模块声明
// export {};


old version

// declare module
export {};

let test = 'abc';
console.log('test =', test);

// 模块声明
// export {};
"use strict";
exports._esModule = true;
var test = 'abc';
console.log('test =', test);

refs



©xgqfrms 2012-2020

www.cnblogs.com/xgqfrms 发布文章使用:只允许注册用户才可以访问!

原创文章,版权所有©️xgqfrms, 禁止转载 🈲️,侵权必究⚠️!


posted @ 2022-02-03 18:35  xgqfrms  阅读(50)  评论(3编辑  收藏  举报