Code Monkey home page Code Monkey logo

phpstorm-config's Introduction

PHPStorm-Config

我的 PHPStorm 配置信息

由于本人以前是 Sublime 的重度用户,现在也是……,只不过写代码基本上用 PHPStorm 了,但是还是会用 Sublime 阅读代码。

所以快捷键也好,代码片段也好,基本上都保留了 Sublime 的习惯。

本来是以为能找到轮子,但是结果没搜索到,所以自己动手。

keymaps

快捷键主要修改了两个:

  • Ctrl + d :多选,重复选中一样的词
  • Ctrl + Shift + d :复制上一行粘贴

这两个快捷键是使用率非常频繁的,一旦习惯,根本停不下来。

templates

代码片段

HTML

if

<?php if ($ITERABLE$): ?>

<?php endif ?>

ife

<?php if ($ITERABLE$): ?>

<?php else: ?>

<?php endif ?>

fore

<?php foreach ($ITERABLE$ as $key => $value): ?>

<?php endforeach ?>

php

<?php $ITERABLE$ ?>

phpe

<?php echo $ITERABLE$ ?>

<?=

```html
<? $ITERABLE$ ?>

PHP

sw

switch ($ITERABLE$) {
    case 'value':
        # code...
        break;

    default:
        # code...
        break;
}

try

try {

} catch (Exception $e) {

}

prd

print_r("$END$");die;

if?

$retVal = ($ITERABLE$) ? $A$ : $B$ ;

ife

if ($ITERABLE$) {
    // code...
} else {
    // code...
}

fun

public function $NAME$($PARAMETERS$){
    $END$
}

sfun

public static function $NAME$($PARAMETERS$){
    $END$
}

fori

for ($i=0; $i < $N$; $i++) { 
    $ITERABLE$
}

文件夹说明

Windows 文件夹代表是 Windows 7 系统版的 PHPStorm ,此版本是 10。 把 Windows 文件夹里面的文件夹放在 C:\Users\Administrator\.WebIde100\config 目录下。

Mac 文件夹代表是 Mac 系统版的 PHPStorm ,此版本是 10。 把 Mac 文件夹里面的文件夹放在 ~/Library/Preferences/WebIdeXX 目录下。

然后你要修改编辑器的配置,应用快捷键 Default copy, 点击保存。

PS:templates 文件夹可以通用,亲测。

phpstorm-config's People

Contributors

forecho avatar zhenghaicaidd01 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

phpstorm-config's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.