How can I use tabs for indentation in IntelliJ IDEA?
File > Settings > Editor > Code Style > Java > Tabs and Indents > Use tab character Substitute weapon of choice for Java as required.
File > Settings > Editor > Code Style > Java > Tabs and Indents > Use tab character Substitute weapon of choice for Java as required.
Change the Tab Limit under the Tab Closing Policy settings. Open your IntelliJ settings: Select File -> Settings -> Editor -> General -> Editor Tabs. Look for Tab Closing Policy -> Tab Limit and change the value to a higher integer. You can also select to either close non-modified files first or less frequently used … Read more
Using lombok 1.18.16 did not work for me. I added the argument below in the build process VM options in -Djps.track.ap.dependencies=false Setting:- Build, Execution, Deployment -> Compiler -> Shared build process VM options and it worked https://github.com/rzwitserloot/lombok/issues/2592
If you’re inside a Flutter Widget, you can use debugPrint, e.g., import ‘package:flutter/foundation.dart’; debugPrint(‘movieTitle: $movieTitle’); Or, use Dart’s built in log() function import ‘dart:developer’; log(‘data: $data’);
Select the code, and then either: Choose Code > Surround With Press Ctrl-Alt-T. (Command-Option-T for OS X.) I like to check the Productivity Guide under the Help menu from time to time. Not only does it tell me all the shortcuts, but it keeps track of how many times I’ve used each one and when … Read more
In addition to having Lombok plugin installed, also make sure that the “Enable annotation processing” checkbox is ticked under: Preferences > Compiler > Annotation Processors Note: starting with IntelliJ 2017, the “Enable Annotation Processing” checkbox has moved to: Settings > Build, Execution, Deployment > Compiler > Annotation Processors
Try by opening the gradle task view and then click the refresh button. For me it solved the problem.
File -> Invalidate caches… (Force rebuild of all caches and indices on next startup) Restart IntelliJ IDEA. Caution: This might Remove local history.
IntelliJ IDEA 14, 15, 2016 & 2017 Format existing code Ensure right margin is not exceeded File > Settings > Editor > Code Style > Java > Wrapping and Braces > Ensure right margin is not exceeded Reformat code Code > Reformat code… or press Ctrl + Alt + L If you have something like … Read more
Since it is hard to find good themes for IntelliJ IDEA, I’ve created this site: https://github.com/sdvoynikov/color-themes (note: site archived to GitHub repo) where there is a large collection of themes. There are 270 themes for now and the site is growing. P.S.: Help me and other people — do not forget to upvote when you … Read more