LoginSignup
0
0

More than 3 years have passed since last update.

PhpStormよく使うコマンド

Posted at

一般コマンド

置換

command + shift + rで一括置換パレット表示

検索

command + shift + fで検索パレット表示

コード整形

設定

command + ,でPrefarenceを開く
Editor > Code Style > PHP
Set from > Predefined StyleよりPSR1/PSR2を選択
個別にTabやIndentの設定も可能

実行

任意のフォルダおよびファイルで右クリック > Reformat Code
もしくは、option + command + l
以下、追加で選べるオプション

Optimize imports: 未使用のimport文を消す
Rearrange entries: メソッドの定義順序をソート
Cleanup Code: 不要なものを消したりする

Git

command + kで選択したフォルダまたはファイルをaddしてcommitしてくれる
ここで、commitメッセージは書く必要がある

リモート関連

Automatic Upload

command + ,でPreferancesを開く
Build,Execution,Deployment > Deployment
ここでリモートサーバの設定を行いApply

Build,Execution,Deployment > Deployment > Options
Upload changed files automatically to the default server: Always
上記の設定により、変更が行われた際に自動的にリモートサーバにアップロードされるようになる

option + command + shift + xでパレットよりリモートサーバを選択しUpload出来る

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0