IntelliJ IDEA: Difference between revisions
Jump to navigation
Jump to search
Line 85: | Line 85: | ||
| valign="top" | | | valign="top" | | ||
─────────────────────────────────────────────── | ─────────────────────────────────────────────── | ||
⌘ + W » Close a Tab | |||
⌘ + T » Open New Tab | ⌘ + T » Open New Tab | ||
⌘ + 1..9 » Switch Between | ⌘ + 1..9 » Switch Between | ||
Line 91: | Line 92: | ||
| valign="top" | | | valign="top" | | ||
─────────────────────────────────────────────── | ─────────────────────────────────────────────── | ||
Control + Shift + W » Close a Tab | |||
Control + Shift + T » Open New Tab | Control + Shift + T » Open New Tab | ||
Alter + 1..9 » Switch Between | Alter + 1..9 » Switch Between |
Revision as of 06:18, 7 March 2021
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 Control + Option + F12» Terminal Option + F4 » Close Idea Window Control + F4 » Close Tab Window Control + F2 » Stop Control + Shift + U » Toggle Upper Case Control + Shift + R » Find Replace in Folder Control + R » Find and Replace Control + F » Find
|
─────────────────────────────────────────────── ⌘ + Option + L » Reformat Code ⌘ + Option + O » Optimize Import ⌘ + R » Find and Replace ⌘ + F » Find Option + Shift + M » Toggle Maven Window |
Terminal
─────────────────────────────────────────────── ⌘ + W » Close a Tab ⌘ + T » Open New Tab ⌘ + 1..9 » Switch Between ⌘ + N » Open New Window |
─────────────────────────────────────────────── Control + Shift + W » Close a Tab Control + Shift + T » Open New Tab Alter + 1..9 » Switch Between Control + Alter + T » Open New Window |
Redis Cli
redis-cli flushall async redis-cli flushall redis-cli flushdb
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 ls -lah /usr/share/maven/ git config --global user.name "Full Name" git config --global user.email "[email protected]" undo assume unchanged or assume unchanged git update-index --no-assume-unchanged src/main/resources/application.properties git update-index --assume-unchanged src/main/resources/application.properties list of files assume unchanged git ls-files -v|grep '^h' create and checkout a new branch git checkout -b new_branch_name discard changes git checkout master -f git stashing git stash; git checkout -b new_branch; git stash pop git add .; git commit -m "new feature added"; git push rebase vs merge git rebase master #all the updated commits of master will be available in the feature branch git merge --squash feature #all the feature commits replaced by a new commit in the master git commit -m 'feature merged with master branch'
nodejs sudo npm install -g npm
-- mysql root@localhost user
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';
-- postgresql public role
-- revoke public connect from specific database after creation
REVOKE CONNECT ON DATABASE academia_ebis_dev FROM PUBLIC;
-- revoke public connect for all future databases
REVOKE CONNECT ON DATABASE template1 FROM PUBLIC;
-- liquibase unlock database migration
UPDATE databasechangeloglock SET locked = false;
COMMIT;
du -h /usr/local/var/postgres/{base,pg_wal} sudo du -h /var/lib/postgresql/11/main/{base,pg_wal} sudo du -h /var/lib/postgresql/12/main/{base,pg_wal}
#nano ~/.bashrc
#nano ~/.profile
export ACADEMIA_WSS="$HOME/chorke/academia"
export ACADEMIA_LOG_PATH="$HOME/.chorke/academia/var/http/logs"
Git Ignore
out/ *.iml *.ipr *.iws .idea/* cmake-build-*/ .idea_modules/ fabric.properties crashlytics.properties atlassian-ide-plugin.xml crashlytics-build.properties com_crashlytics_export_strings.xml
References
|
|