VS Code实用技能1 - 代码折叠、面包屑

本文介绍了VSCode中提高代码编辑效率的实用技能,包括代码折叠快捷键、面包屑导航的开启方式,以及一系列提升开发体验的配置项设置,如自动保存、去除多余空格等。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

VS Code实用技能

一、代码折叠

ubuntu 

ctrl + shift + {

ctrl + shift + }

ctrl + k , ctrl + 0

ctrl + k , ctrl + j

 

二、面包屑

1.打开控制面板 ctrl + p

2.输入>

3.选择Open User Setting

4.搜索bread

5. 打开面包屑功能

 

 

三、常用配置项

{
    "window.zoomLevel": 0,
    "workbench.activityBar.visible": false,
    "workbench.statusBar.visible": false,
    "editor.minimap.enabled": false,
    "window.menuBarVisibility": "default",

    "php.validate.enable": true,
    "php.validate.executablePath": "C:\\php\\php.exe",
    "php.validate.run": "onType",
    "breadcrumbs.enabled": true,
    "files.autoSave": "onFocusChange",
    "files.trimTrailingWhitespace": true,

    "workbench.activityBar.visible": true,
    "window.menuBarVisibility": "default",
    "extensions.ignoreRecommendations": true,
    "git.ignoreLegacyWarning": true,
    "editor.multiCursorModifier": "ctrlCmd",
    "editor.snippetSuggestions": "top",
    "editor.formatOnPaste": true,
    "files.trimTrailingWhitespace": true,
    "editor.wordWrap": "off",
    "workbench.startupEditor": "newUntitledFile",
    "emmet.triggerExpansionOnTab": true,
    "[javascript]": {
        "editor.insertSpaces": true,
        "editor.tabSize": 2
    },
    "[coffeescript]": {
        "editor.insertSpaces": true,
        "editor.tabSize": 2
    },
    "diffEditor.ignoreTrimWhitespace": true,
    "window.zoomLevel": 0,
    "files.autoSave": "afterDelay",
    "php.executablePath": "/usr/bin/php",
    "workbench.iconTheme": "vscode-icons",
    "workbench.colorTheme": "One Monokai",
    "cssrem.rootFontSize": 37.5
}

  

 

转载于:https://www.cnblogs.com/jackson0714/p/VSCode1.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值