ide setting

vscode

  • install eslint: npm install -g eslint

  • editorconfig

    	root = true
    	[*]
    	charset = utf-8
    	indent_style = space
    	indent_size = 2
    	end_of_line = lf
    	insert_final_newline = true
    	trim_trailing_whitespace = true
    	[**.{h,cc,cxx,cpp,proto,lua}]
    	indent_style = space
    	indent_size = 2
    	table_width = 2
    	[{**.py,wscript,wscript_*}]
    	indent_style = space
    	indent_size = 4
    	table_width = 4
    
  • eslint

  • vetur

  • vscode-element-helper

  • prettier, format code

  • config

{
  // 皮肤
  // "workbench.colorTheme": "Monokai",
  // 命令行工具
  //"terminal.integrated.shell.windows": "C:\\Program Files\\Git\\bin\\bash.exe",
  // 窗口失去焦点自动保存
  "files.autoSave": "onFocusChange",
  // 编辑粘贴自动格式化
  "editor.formatOnPaste": false,
  // "editor.cursorStyle": "block",
  "editor.fontLigatures": true,
  "editor.fontSize": 14,
  // 行高
  // "editor.lineHeight": 24,
  "editor.lineNumbers": "on",
  // "editor.minimap.enabled": false,
  // "editor.renderIndentGuides": false,
  "editor.rulers": [80, 120],
  "workbench.colorTheme": "Solarized Dark",
  // 控制字体系列。
  "editor.fontFamily": "Monaco, pingfang, Menlo, 'Courier New', monospace",
  // 行太长自动换行
  "editor.wordWrap": "on",
  // eslint设置
  "eslint.validate": [
    "javascript",
    "javascriptreact",
    {
      "language": "html",
      "autoFix": true
    },
    {
      "language": "vue",
      "autoFix": true
    }
  ],
  // 保存自动修复, true
  "eslint.autoFixOnSave": true,
  // 空格变成......
  "editor.renderWhitespace": "all",
  // "workbench.colorTheme": "Solarized Dark",
  "emmet.syntaxProfiles": {
    "vue-html": "html",
    "vue": "html"
  },
  "workbench.startupEditor": "newUntitledFile",
  // 智能提醒
  "editor.quickSuggestions": {
    "other": true,
    "comments": true,
    "strings": true
  },
  "workbench.sideBar.location": "left",
  "breadcrumbs.enabled": false, // jade/pug quotes
  // vue format, 还不是很完美, 与 eslint 有冲突
  "prettier.singleQuote": true,
  "prettier.semi": false,
  "vetur.format.defaultFormatter.html": "js-beautify-html",
  "vetur.format.defaultFormatterOptions": {
    "wrap_attributes": "force-aligned"
  },
  "workbench.iconTheme": "vs-minimal",
  "extensions.autoCheckUpdates": false,
  "extensions.autoUpdate": false,
  "update.channel": "none",
  "gitlens.currentLine.enabled": false,
  // gbk
  "files.autoGuessEncoding": true,
  // json allow "comments"
  "files.associations": {
    "*.json": "jsonc",
    ".prettierrc": "jsonc"
  },
"local-history.daysLimit": 30,
"diffEditor.ignoreTrimWhitespace": true // A day number to purge local history. (0: no purge)
  //   "local-history.enabled":
  //         0: Never     // Possibillity to disabled the extension for some project
  //         1: Always    // (default) Save also single file with no workspaceFolder ("local-history.path" must be defined)
  //         2: Workspace // Save only files within workspaceFolder
}
  • key
    • format option+shift+f

sb3

{
	"bold_folder_labels": true,
	"color_scheme": "Packages/User/SublimeLinter/Mariana (SL).tmTheme",
	"default_encoding": "UTF-8",
	"default_line_ending": "unix",
	"dpi_scale": 1.0,
	"draw_minimap_border": true,
	"draw_white_space": "all",
	"fade_fold_buttons": false,
	"file_size_limit": 4194304,
	"folder_exclude_patterns":
	[
		"node_modules"
	],
	"font_face": "Monaco",
	"font_size": 16,
	"format_timestamp": "%Y%m%d%H%M%S",
	"highlight_line": true,
	"highlight_modified_tabs": true,
	"history_on_close": true,
	"history_on_focus_lost": false,
	"history_on_load": true,
	"history_retention": 0,
	"ignored_packages":
	[
		"Vintage"
	],
	"linters":
	{
		"eslint":
		{
			"env":
			{
				"PATH": "/usr/local/bin/eslint"
			}
		}
	},
	"portable": false,
	"rulers":
	[
		80,
		100
	],
	"save_on_focus_lost": true,
	"show_encoding": true,
	"show_full_path": true,
	"spell_check": false,
	"tab_size": 4,
	"draw_white_space": "all",
	"theme": "Default.sublime-theme",
	"translate_tabs_to_spaces": true,
	"update_check": false
}

转载于:https://my.oschina.net/yangjiandong/blog/1865293

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值