search
HomeDevelopment ToolsVSCodeHow to convert PHPStrom to VSCode and how to configure it?

How to convert PHPStrom to VSCode and how to configure it?

前言

使用许久的 PHPStorm 在我的电脑上启动速度越来越慢了;

索性尝试更换据说是 “世界第一编辑器” 的 VSCode。

喜欢折腾的我两天时间都在安装各种插件权衡是否保留。

目前以 PHP 为主留下以下记录,希望可以帮到你。

如果你有什么觉得更好的插件可以推荐给我,万分感谢。

主题配色

和 PHPStorm 一样,使用 Meterial Theme 的 Palenight。

文件图标主题

同样使用 Meterial Icon Theme。

插件

插件的选择本着日后能经常用到的原则,有用但利用率非常低的就不选择安装了。

PHP Intelephense

PHP 的代码提示、补全、跳转定义、格式化插件,功能强大,无需配置;优秀,必装。

网上其它文章推荐的还有 PHP IntelliSense 和 PHP Intellisense - Crane。

这两个已经很久没更新了,经过我单独安装单独测试也没有 PHP Intelephense 好用。

PHP Snippets from PHPStrom

使用和 PHPStrom 一样的快捷代码片段,pubf + tab?优秀,必装。

PHP DocBlocker

注释自动生成器,/** 回车?优秀,必装。

PHP Namespace Resolver

PHP 命名空间解析器;可以导入和扩展类;还可以排序。优秀,必装。

Better Align

还记得 PHPStorm 设置里的等号对齐吗,可以实现变量和数组的等号对齐。优秀,必装。

Project Manager

多任务管理、快速切换;不用多说。优秀,必装。

Auto Rename Tag

经测试新版 VSCode 已经可以自动关闭标签了,但是 Rename 还不行,所以这个也得装。

Settings Sync

VSCode 配置同步插件,换机器手动一个一个安装插件?一点一点该配置?不存在的。

该插件可一键将你的全部配置上传到 Github Gists,还可以一键下载到本地。必装。

我的配置

{
    // 编辑器字体
    "editor.fontFamily": "Operator Mono, Sarasa Term CL",
    // 字体大小
    "editor.fontSize": 18,
    // 字间距
    "editor.letterSpacing": 0.2,
    // 行高
    "editor.lineHeight": 28,
    // 字体连字
    "editor.fontLigatures": true,
    // 换行设定
    "editor.wordWrap": "off",
    // 代码小地图
    "editor.minimap.enabled": false,
    // 自动保存机制
    "files.autoSave": "onFocusChange",
    // 保存自动格式化
    "editor.formatOnSave": true,
    // 文件修饰是否使用徽章
    "explorer.decorations.badges": false,
    // 预览编辑器(直接打开)
    "workbench.editor.enablePreview": false,
    // 主题设置
    "workbench.colorTheme": "Material Theme Palenight",
    // SiderBar 图标
    "workbench.iconTheme": "material-icon-theme",
    // PHP DocBlocker - PHP自动注释配置(更多设置见扩展说明)
    // Description and Tags 间距
    "php-docblocker.gap": false,
    // 为类添加注释时添加命名空间
    "php-docblocker.qualifyClassNames": true,
    // 默认作者和邮箱
    "php-docblocker.author": {
        "name": "Talent",
        "email": "talent.m@gmail.com"
    },
    // Terminal 程序设定
    "terminal.integrated.shell.windows": "C:\\Program Files\\Git\\bin\\bash.exe",
    "terminal.integrated.fontSize": 16,
    // 语言单独设定
    "[html]": {
        "editor.formatOnSave": false
    },
    // 设置同步
    "sync.gist": "336adfda8aedd01eee610d6cd421d144",
}

PS:虽然没有 Sublime Text 启动速度快,但是和 PHP Storm 相比已经超级感人了。

相关推荐:《vscode使用教程

本文系转载,原文地址:https://miaoqiang.name/archives/vscode-extension-sharing.html

The above is the detailed content of How to convert PHPStrom to VSCode and how to configure it?. For more information, please follow other related articles on the PHP Chinese website!

Statement
This article is reproduced at:learnku. If there is any infringement, please contact admin@php.cn delete
Visual Studio: Exploring the Free and Paid OfferingsVisual Studio: Exploring the Free and Paid OfferingsApr 22, 2025 am 12:09 AM

The main difference between the free and paid versions of VisualStudio is the richness of features and the service supported. The free version (Community) is suitable for individual developers and small teams, providing basic development tools; the paid version (Professional and Enterprise) provides advanced features such as advanced debugging and team collaboration tools, suitable for large projects and enterprise-level development.

Visual Studio Community Edition: The Free Option ExplainedVisual Studio Community Edition: The Free Option ExplainedApr 21, 2025 am 12:09 AM

VisualStudioCommunityEdition is a free IDE suitable for individual developers, small teams and educational institutions. 1) It provides functions such as code editing, debugging, testing and version control. 2) Based on the Roslyn compiler platform, it supports multiple programming languages ​​and integrates Git and TFVC. 3) Advanced features include unit testing, optimization suggestions include turning off unnecessary extensions and using a lightweight editor.

Visual Studio: Building Applications with EaseVisual Studio: Building Applications with EaseApr 20, 2025 am 12:09 AM

VisualStudio is an integrated development environment (IDE) developed by Microsoft, which supports a variety of programming languages, including C#, C, Python, etc. 1. It provides IntelliSense function to help write code quickly. 2. The debugger allows setting breakpoints, step-by-step code execution, and identifying problems. 3. For beginners, creating a simple console application is a great way to get started. 4. Advanced usage includes the application of design patterns such as project management and dependency injection. 5. Common errors can be solved step by step through debugging tools. 6. Performance optimization and best practices include code optimization, version control, code quality inspection and automated testing.

Visual Studio and VS Code: Understanding Their Key DifferencesVisual Studio and VS Code: Understanding Their Key DifferencesApr 19, 2025 am 12:16 AM

VisualStudio is suitable for large-scale projects and enterprise-level application development, while VSCode is suitable for rapid development and multilingual support. 1. VisualStudio provides a comprehensive IDE environment and supports Microsoft technology stack. 2.VSCode is a lightweight editor that emphasizes flexibility and scalability, and supports cross-platform.

Is Visual Studio Still Free? Understanding the AvailabilityIs Visual Studio Still Free? Understanding the AvailabilityApr 18, 2025 am 12:05 AM

Yes, some versions of VisualStudio are free. Specifically, VisualStudioCommunityEdition is free for individual developers, open source projects, academic research, and small organizations. However, there are also paid versions such as VisualStudioProfessional and Enterprise, suitable for large teams and enterprises, providing additional features.

Using Visual Studio: Developing Software Across PlatformsUsing Visual Studio: Developing Software Across PlatformsApr 17, 2025 am 12:13 AM

Cross-platform development with VisualStudio is feasible, and by supporting frameworks like .NETCore and Xamarin, developers can write code at once and run on multiple operating systems. 1) Create .NETCore projects and use their cross-platform capabilities, 2) Use Xamarin for mobile application development, 3) Use asynchronous programming and code reuse to optimize performance to ensure efficient operation and maintainability of applications.

How to format json with vscodeHow to format json with vscodeApr 16, 2025 am 07:54 AM

The ways to format JSON in VS Code are: 1. Use shortcut keys (Windows/Linux: Ctrl Shift I; macOS: Cmd Shift I); 2. Go through the menu ("Edit" > "Format Document"); 3. Install JSON formatter extensions (such as Prettier); 4. Format manually (use shortcut keys to indent/extract blocks or add braces and semicolons); 5. Use external tools (such as JSONLint and JSON Formatter).

How to compile vscodeHow to compile vscodeApr 16, 2025 am 07:51 AM

Compiling code in VSCode is divided into 5 steps: Install the C extension; create the "main.cpp" file in the project folder; configure the compiler (such as MinGW); compile the code with the shortcut key ("Ctrl Shift B") or the "Build" button; run the compiled program with the shortcut key ("F5") or the "Run" button.

See all articles

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

MantisBT

MantisBT

Mantis is an easy-to-deploy web-based defect tracking tool designed to aid in product defect tracking. It requires PHP, MySQL and a web server. Check out our demo and hosting services.

mPDF

mPDF

mPDF is a PHP library that can generate PDF files from UTF-8 encoded HTML. The original author, Ian Back, wrote mPDF to output PDF files "on the fly" from his website and handle different languages. It is slower than original scripts like HTML2FPDF and produces larger files when using Unicode fonts, but supports CSS styles etc. and has a lot of enhancements. Supports almost all languages, including RTL (Arabic and Hebrew) and CJK (Chinese, Japanese and Korean). Supports nested block-level elements (such as P, DIV),

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

DVWA

DVWA

Damn Vulnerable Web App (DVWA) is a PHP/MySQL web application that is very vulnerable. Its main goals are to be an aid for security professionals to test their skills and tools in a legal environment, to help web developers better understand the process of securing web applications, and to help teachers/students teach/learn in a classroom environment Web application security. The goal of DVWA is to practice some of the most common web vulnerabilities through a simple and straightforward interface, with varying degrees of difficulty. Please note that this software

ZendStudio 13.5.1 Mac

ZendStudio 13.5.1 Mac

Powerful PHP integrated development environment