Shortcuts
───────────────────────────────────────────────
⌘ + 1 » Project
⌘ + 2 » Favorites
⌘ + 3 » Find
⌘ + 4 » Run
⌘ + 5 » Debug
⌘ + 6 » Problems
⌘ + 7 » Structure
⌘ + 8 » Services
⌘ + 9 » Git
|
───────────────────────────────────────────────
Shift + Shift » Navigate
⌘ + B » Navigate Usages
⌘ + E » Recent Files
⌘ + E » Toggle Changes Only Files
⌘ + Shift + F12 » Hide All Windows
⌘ + , » Preferences
⌘ + ; » Project Structures
⌘ + - » Folding Collapse
⌘ + + » Folding Expand
|
───────────────────────────────────────────────
Control + N » New Class, Interface, Enum
⌘ + W » Extend Selection
⌘ + Option + V » Extract Variable
⌘ + Option + M » Extract Method
⌘ + Option + P » Extract Parameter
⌘ + Option + N » Inline Variable
⌘ + Shift + T » Navigate Go to Test
⌘ + F12 » Navigate File Structure
⌘ + D » Duplicate Line
⌘ + D » Git Difference
⌘ + Option + Z » Git Undo the Change
|
───────────────────────────────────────────────
Control + Shift + Down» Line Move Down
Control + Shift + Up » Line Move Up
Control + Shift + F10 » Run Unit Test
Control + Shift + F » Find or Search
Control + V » VCS Operation
⌘ + Shift + G » Go to Folder
⌘ + X » Cut Line
Control + F11 » Toggle Bookmark
F11 » Toggle Bookmark
Shift + F9 » Debug Application
Shift + F10 » Run Application
|
───────────────────────────────────────────────
Control + Option + [ » Previous Project Window
Control + Option + ] » Next Project Window
|
───────────────────────────────────────────────
|
Knowledge
ubuntu
Ctrl + Alt + F5 » Switch Desktop to Terminal
Crtl + Alt + F1 » Switch Terminal to Desktop
sudo update-alternatives --config javac
sudo update-alternatives --config java
git config --global user.name "FULL NAME"
git config --global user.email "[email protected]"
assume unchanged
git update-index --assume-unchanged src/main/resources/application.properties
create and checkout a new branch
git checkout -b new_branch_name
discard changes
git checkout master -f
SELECT user, plugin, host FROM mysql.user WHERE user = 'root';
ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'p@$$w0rd';
UPDATE mysql.user SET plugin = 'mysql_native_password', authentication_string = PASSWORD('p@$$w0rd') WHERE User = 'root';
#nano ~/.bashrc
export ACADEMIA_WSS="$HOME/chorke/academia"
export ACADEMIA_LOG_PATH="$HOME/.chorke/academia/var/http/logs"
#nano ~/.profile
export ACADEMIA_WSS="$HOME/chorke/academia"
export ACADEMIA_LOG_PATH="$HOME/.chorke/academia/var/http/logs"
References