Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

An example of converting PHPStrom to VSCode

2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/02 Report--

This article mainly introduces the example of PHPStrom to VSCode, the article is very detailed, has a certain reference value, interested friends must read it!

Preface

PHPStorm, which has been used for a long time, starts more and more slowly on my computer.

Simply try to replace VSCode, which is said to be the "number one editor in the world".

Fond of messing around, I spent two days installing various plug-ins to weigh whether to keep it or not.

At present, PHP mainly left the following records, I hope I can help you.

If you have any better plug-ins you can recommend to me, thank you very much.

Theme color matching

Like PHPStorm, use Meterial Theme's Palenight.

File icon theme

Meterial Icon Theme is also used.

Plug-in

Plug-ins are selected based on the principle that they can be used frequently in the future, and those that are useful but with very low utilization will not choose to install them.

PHP Intelephense

PHP code hint, completion, jump definition, format plug-in, powerful, no configuration; excellent, must be installed.

Other online articles recommend PHP IntelliSense and PHP Intellisense-Crane.

These two have not been updated for a long time, and after my separate installation and testing, they are not as good as PHP Intelephense.

PHP Snippets from PHPStrom

Use the same shortcut code snippet as PHPStrom, pubf + tab? Excellent, must pretend.

PHP DocBlocker

Automatic comment generator, / * enter? Excellent, must pretend.

PHP Namespace Resolver

PHP namespace parser; you can import and extend classes; you can also sort. Excellent, must pretend.

Better Align

Remember the equal sign alignment in the PHPStorm setting? you can align variables with the equal sign of an array. Excellent, must pretend.

Project Manager

Multitasking management, fast switching; needless to say. Excellent, must pretend.

Auto Rename Tag

After testing, the new version of VSCode can automatically close the tag, but Rename is not yet, so this has to be installed.

Settings Sync

VSCode configure synchronization plug-ins, change the machine to install plug-ins manually? Little by little should be configured? It doesn't exist.

The plugin can upload all your configurations to Github Gists and download them locally with one click. Must be installed.

My configuration

{/ / Editor font "editor.fontFamily": "Operator Mono, Sarasa Term CL", / / font size "editor.fontSize": 18, / / word spacing "editor.letterSpacing": 0.2line height "editor.lineHeight": 28, / / font hyphen "editor.fontLigatures": true, / / newline setting "editor.wordWrap": "off" / / Code mini-map "editor.minimap.enabled": false, / / automatic saving mechanism "files.autoSave": "onFocusChange", / / Save automatic formatting "editor.formatOnSave": true, / / whether to use badge "explorer.decorations.badges": false, / / Preview editor (open directly) "workbench.editor.enablePreview": false / / theme setting "workbench.colorTheme": "Material Theme Palenight", / / SiderBar icon "workbench.iconTheme": "material-icon-theme", / / PHP DocBlocker-PHP automatic annotation configuration (for more settings, see extension instructions) / / Description and Tags spacing "php-docblocker.gap": false, / / add the namespace "php-docblocker.qualifyClassNames": true when adding comments to the class / / default author and email "php-docblocker.author": {"name": "Talent", "email": "talent.m@gmail.com"}, / / Terminal program setting "terminal.integrated.shell.windows": "C:\\ Program Files\\ Git\\ bin\\ bash.exe", "terminal.integrated.fontSize": 16 / / language separately set "[html]": {"editor.formatOnSave": false}, / / set synchronization "sync.gist": "336adfda8aedd01eee610d6cd421d144",}

PS: it's not as fast as Sublime Text, but it's super touching compared to PHP Storm.

The above is all the content of this article "the example of PHPStrom to VSCode". Thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report