Skip to main content

Intelli J Idea Tricks n Tips


Switch Function key of your mac or windows machine, so that you don’t have to press function key while using F1, F2.

Search:
File Search: Cmd + Shft + O
Text search in whole project : Cmd + Shft + F
Search settings, commands : Cmd + Shft + A    ( Brahmastra )

Navigation:
Disable tabs. We don’t need it.
Recent files: Cmd + E.  Last accessed file, Cmd + E + Enter
Recently edited files: Cmd + Shft + E
Browse backward / forward in history: Cmd + [    OR Cmd + ]
Project Window Toggle: Alt + 1
In project window setting Autoscroll from source
Open a selected file from project window: F4
Create new file: Ctr + Alt + N
Hide all windows except Code editor:  Cmd + Shft + F12
Toggle Terminal: Cmd + F12
Find implementation of any method: Cmd + Alt + F8
Find usages: Cmd + F7   OR   Cmd + B
Remove navigation bar, from View menu.

Code Editor:
Move code up or down: Alt + Shft + Up / down
Duplicate a line : Cmd + D
Delete Line : Cmd + Delete
Reformat Code: Cmd + Alt + L
While writing json or html in the string, you can do Alt + Enter -> Inject language -> Json.  
And you will be able to create json in json editor. Same can be done for regular expressions. Once as string is marked as regular expression, you can do the validation against it.
Invoke surround with: Cmd + Alt + T. useful to add try catch block
Suggest function argument: Cmd + P
List methods: Cmd + F12
Next error in the file : F2
Run project: Ctrl + R
Debug project: Ctrl + D
Use Evaluate Expressions in debugging mode to check dynamic code changes without restarting project
Misc:
Use scratch file for temporary code. It gets auto-deleted when closed


Comments

  1. This is an awesome post. Really very informative and creative contents. This concept is a good way to enhance knowledge. I like it and help me to development very well. Thank you for this brief explanation and very nice information. Well, got good knowledge.
    WordPress development company in Chennai

    ReplyDelete
  2. Great Article
    Cloud Computing Projects


    Networking Projects

    Final Year Projects for CSE


    JavaScript Training in Chennai

    JavaScript Training in Chennai

    The Angular Training covers a wide range of topics including Components, Angular Directives, Angular Services, Pipes, security fundamentals, Routing, and Angular programmability. The new Angular TRaining will lay the foundation you need to specialise in Single Page Application developer. Angular Training

    ReplyDelete

Post a Comment

Popular posts from this blog

Auto Scaling DynamoDB

Those of you who have worked with the DynamoDB long enough, will be aware of the tricky scaling policies of DynamoDB. It allows user to explicitly set requests per second (units per second, but for simplicity we will just say request per second). User can do so for read as well as write operations. Anytime user can increase or decrease the provision capacity from DynamoDB web console and it will reflect immediately. Sounds all good....... Or not? What if you set provisioned capacity to 50 req per second but load on the server crosses 100 req per second? Requests gets throttled!! Mostly times out. What's worse? This can cause requests getting queued up in your web server. Which can potentially bring your entire server down. What if you set provisioned capacity to 1000 req per second but load on the server is only 100 req per second through out the day? You lose your hard earned money for remaining 900 req per second. What if you set it to 1000 req per sec and then realis

StackDriver Integration with AWS Elastic Beanstalk - Part 2

Eb Extension Config Our goal is to create a configuration such that, it can run on any elastic beanstalk instance. It should send production and non-production logs to two seperate Stackdriver projects. Adding monitoring for new log file should include minimal changes at best. If you have used Elastic Beanstalk before, probably you will be familiar with eb-extensions scripts. These are the set of commands those run everytime application is deployed on the EB. Step 1: Create folder .ebextension in your WEB-ROOT directory.  EB by default looks for ".config" files under .ebextension directory and executes on app-deployment. Add sub-directory called "stackdriver" under .ebextension directory that you just created. Step 2: Add google-fluentd.conf file in stackdriver directory.  Fluent-d agent runs on this configuration. This file tells the fluentd where to look for log files. Following sample file configures fluentd to check for app.log and billing.log files.