Help us understand the problem. What is going on with this article?

PhpStormよく使うコマンド

一般コマンド

置換

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出来る

Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Comments
No comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
ユーザーは見つかりませんでした