开发工具配置汇总

WebStorm,IDEA,Pycharm

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# custom IntelliJ IDEA VM options (expand/override 'bin\idea64.exe.vmoptions')
-Xms4096m
-Xmx4096m
-XX:ReservedCodeCacheSize=512m
-XX:+UseG1GC
-XX:SoftRefLRUPolicyMSPerMB=50
-Xverify:none
-ea
-XX:CICompilerCount=2
-Dsun.io.useCanonPrefixCache=false
-Djdk.http.auth.tunneling.disabledSchemes=""
-XX:+HeapDumpOnOutOfMemoryError
-XX:-OmitStackTraceInFastThrow
-Dkotlinx.coroutines.debug=off
-Djdk.module.illegalAccess.silent=true
-Dide.no.platform.update=true
-Djdk.attach.allowAttachSelf=true
-Dfile.encoding=UTF-8
  • 参数解释
    • -Xms5120m: 指定JVM的初始堆大小为 5120 MB,即5GB。
    • -Xmx5120m: 指定JVM的最大堆大小为5120MB,即5GB。
    • -XX:ReservedCodeCacheSize=512m: 为JIT编译器代码缓存保留512MB内存。
    • -XX:+UseG1GC: 使用G1垃圾收集器,这种垃圾收集器具有更好的性能和更低的暂停时间。
    • -XX:SoftRefLRUPolicyMSPerMB=50: 设置软引用在内存不足时的LRU算法阈值为50ms/MB。
    • -Xverify:none: 关闭类文件验证,可以提高加载类的速度,但也可能会增加安全风险。
    • -ea: 启用断言检查。
    • -XX:CICompilerCount=2: 指定JIT编译器的线程数为2个。
    • -Dsun.io.useCanonPrefixCache=false: 禁用文件路径缓存,以避免出现一些缓存相关的问题。
    • -Djdk.http.auth.tunneling.disabledSchemes="": 禁用HTTP隧道代理身份验证。
    • -XX:+HeapDumpOnOutOfMemoryError: 当内存溢出时,生成堆转储文件。
    • -XX:-OmitStackTraceInFastThrow: 保留快速抛出异常时的堆栈跟踪信息。
    • -Dkotlinx.coroutines.debug=off: 关闭Kotlin协程的调试模式。
    • -Djdk.module.illegalAccess.silent=true: 启用JDK模块间的非法访问时的静默模式。
    • -Dide.no.platform.update=true: 禁用IDE平台的自动更新。
    • -Djdk.attach.allowAttachSelf=true: 允许IDE自己连接到JVM,以进行一些调试和诊断工作。
    • -Dfile.encoding=UTF-8: 指定文件编码为UTF-8。

Vscode

  • 下载选择

    System Installer
  • 用户配置

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    # ctrl + , 右上角点击中间文件

    {
    "editor.formatOnSave": true,
    "editor.mouseWheelZoom": true,
    "editor.fontSize": 26,
    "editor.lineHeight": 42,
    "editor.fontFamily": "ER Kurier 1251", // ER Kurier 1251
    "workbench.iconTheme": "vscode-great-icons",
    // 空文件夹不折叠
    "explorer.compactFolders": false,
    "terminal.integrated.shell.windows": "D:\\Soft\\Git\\bin\\bash.exe",
    "terminal.integrated.fontSize": 16,
    "terminal.integrated.cursorBlinking": true, // 光标闪烁
    "terminal.integrated.lineHeight": 1.2,
    "terminal.integrated.letterSpacing": 0.1,
    "terminal.integrated.fontFamily": "monospace", // 字体设置
    //终端颜色配置
    "workbench.colorCustomizations": {
    //可以将鼠标放到下面的色号上根据自己的偏好进行选择
    "terminal.foreground": "#FFB700",
    "terminal.background": "#23272E"
    },
    // 删除文件时不弹出确认弹窗(因为很烦)
    "explorer.confirmDelete": false,
    "workbench.colorTheme": "One Dark Pro",
    // 在使用搜索功能时,将这些文件夹/文件排除在外
    "search.exclude": {
    "**/node_modules": true,
    "**/bower_components": true,
    "**/target": true,
    "**/logs": true
    },
    "RainbowBrackets.depreciation-notice": false,
    // TODO: 别名路径跳转插件: 文件名别名跳转
    "alias-skip.mappings": {
    "~@/": "/src",
    "views": "/src/views",
    "assets": "/src/assets",
    "network": "/src/network",
    "common": "/src/common"
    },
    "editor.minimap.enabled": false,
    "[html]": {
    "editor.defaultFormatter": "esbenp.prettier-vscode"
    },
    "[vue]": {
    "editor.defaultFormatter": "Vue.volar"
    },
    "workbench.list.smoothScrolling": true,
    "editor.formatOnPaste": true,
    "editor.formatOnType": true,
    "editor.wordWrap": "on",
    "editor.suggest.snippetsPreventQuickSuggestions": false,
    "editor.acceptSuggestionOnEnter": "smart",
    "editor.suggestSelection": "first",
    "window.dialogStyle": "custom",
    "debug.showBreakpointsInOverviewRuler": true,
    "[jsonc]": {
    "editor.defaultFormatter": "vscode.json-language-features"
    },
    "files.autoSave": "afterDelay",
    "files.autoGuessEncoding": true,
    "editor.cursorSmoothCaretAnimation": "on",
    "editor.smoothScrolling": true,
    "editor.cursorBlinking": "smooth",
    // 编辑器左侧目录树偏移量
    "workbench.tree.indent": 10,
    "workbench.startupEditor": "newUntitledFile",
    // onlyEnabledExtensions: 仅为已启用的扩展自动下载并安装更新。将不会自动更新已禁用的扩展。
    "extensions.autoUpdate": "onlyEnabledExtensions",
    // 启用后,将不会显示扩展建议的通知。
    "extensions.ignoreRecommendations": true,
    // 要在终端中用于非粗体文本的字体粗细。接受“正常”“加粗”这两个关键字,或接受 1-1000 之间的数字。
    "terminal.integrated.fontWeight": "300",
    // 控制在资源管理器内拖放移动文件或文件夹时是否进行确认。
    "explorer.confirmDragAndDrop": false,
    "git.openRepositoryInParentFolders": "never",
    "vsintellicode.modify.editor.suggestSelection": "choseToUpdateConfiguration",
    "[javascript]": {
    "editor.defaultFormatter": "esbenp.prettier-vscode"
    },
    "redhat.telemetry.enabled": true,
    "[css]": {
    "editor.defaultFormatter": "esbenp.prettier-vscode"
    },
    "liveServer.settings.donotShowInfoMsg": true,
    "editor.tokenColorCustomizations": {
    "comments": "#A7F2CE"
    },
    }
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    # workbench
    {
    "workbench.colorCustomizations": {
    "tab.activeForeground": "#ff0000",
    "tab.inactiveForeground": "#00ff00",
    "tab.unfocusedActiveForeground": "#0000ff",
    "tab.unfocusedInactiveForeground": "#ffff00",
    "activityBar.foreground": "#ff00ff",
    "activityBar.inactiveForeground": "#00ffff",
    "sideBar.foreground": "#f0f0f0",
    "sideBarSectionHeader.foreground": "#04ff58"
    },
    }
  • 主题选择

    1
    One Dark Pro
  • 配置快捷键

    ctrl + k, ctrl + s 进入快捷键配置页面,点击箭头所指方向
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    //
    // Place your key bindings in this file to override the defaultsauto[]
    [
    // 格式化快捷键
    {
    "key": "ctrl+alt+l",
    "command": "editor.action.formatDocument",
    "when": "editorHasDocumentFormattingProvider && editorHasDocumentFormattingProvider && editorTextFocus && !editorReadonly && !inCompositeEditor"
    },
    {
    "key": "ctrl+d",
    "command": "editor.action.copyLinesDownAction",
    "when": "editorTextFocus && !editorReadonly"
    }
    ]

  • 插件

    • Auto Rename Tag
    • path-alias
    • 别名路径跳转插件
    • live server
    • Svg Preview
    • Parameter Hints
    • Error Lens
    • Auto Close Tag
    • Prettier - Code formatter
    • Path Intellisense
    • GBK to UTF8 for vscode

MYSQL-5.7

  • 安装目录下新建my.ini | my.conf(Linux)

    mysql
    mysql
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    # MySQL配置

    [client]
    # MySQL客户端端口
    port=3306
    [mysql]
    # MySQL默认字符集编码
    default-character-set=utf8
    [mysqld]
    # MySQL端口
    port=3306
    # MySQL数据库默认编码
    character-set-server=utf8
    # 表存储引擎方式 INNODBMyISAM两种
    default-storage-engine=MyISAM
    # SQL验证模式
    sql-mode="NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION"
    # 最大连接数
    max_connections=512
    # MySQL查询缓存
    query_cache_size=0
    # 高速缓存的大小
    table_cache=256
    # 内存表的大小
    tmp_table_size=18M

    # 最大连接线程数
    thread_cache_size=8
    # 重建索引时所允许的最大临时文件的大小
    myisam_max_sort_file_size=64G
    # MyISAM表发生变化时重新排序所需的缓冲
    myisam_sort_buffer_size=35M
    # 索引缓冲区的大小
    key_buffer_size=25M
    # 内存缓冲区大小
    read_buffer_size=64K
    # 随机读缓冲区大小
    read_rnd_buffer_size=256K
    # 排序缓冲区大小
    sort_buffer_size=256K


    # InnoDB存储引擎用来存放数据字典信息以及一些内部数据结构的内存空间大小
    innodb_additional_mem_pool_size=2M
    innodb_flush_log_at_trx_commit=1
    innodb_log_buffer_size=1M
    innodb_buffer_pool_size=47M
    innodb_log_file_size=24M
    innodb_thread_concurrency=8

    log_bin=on

    ####################主从服务器配置##########################
    # server-id=1 #数据库唯一ID,主从的标识号绝对不能重复。
    # log-bin=mysql-bin #开启bin-log,并指定文件目录和文件名前缀
    # binlog-do-db=huanqiu #需要同步的数据库。如果是多个同步库,就以此格式另写几行即可。如果不指明对某个具体库同步

    ,就去掉此行,表示同步所有库(除了ignore忽略的库)。
    # binlog-ignore-db=mysql #不同步mysql系统数据库。如果是多个不同步库,就以此格式另写几行;也可以在一行,中间逗号

    隔开。
    # sync_binlog = 1 #确保binlog日志写入后与硬盘同步
    # binlog_checksum = none #跳过现有的采用checksum的事件,mysql5.6.5以后的版本中binlog_checksum=crc32,而低版本都是

    binlog_checksum=none
    # binlog_format = mixed #bin-log日志文件格式,设置为MIXED可以防止主键重复。
    #############################################################
  • 数据库编码检查

    解决中文乱码
    配置后,编程问题解决

Windows 软件安装

  • Snipaste
  • FastStone Capture
  • ScreenToGif
  • Utools
  • MobaXterm
  • VMware Workstatioc Pro
  • 向日葵
  • Navicat Premium 16
  • 火绒
  • IDEA
  • Vscode