PHPDoc type hinting for array of objects?

In the PhpStorm IDE from JetBrains, you can use /** @var SomeObj[] */, e.g.: /** * @return SomeObj[] */ function getSomeObjects() {…} The phpdoc documentation recommends this method: specified containing a single type, the Type definition informs the reader of the type of each array element. Only one Type is then expected as element for … Read more

Seeking useful Eclipse Java code templates [closed]

The following code templates will both create a logger and create the right imports, if needed. SLF4J ${:import(org.slf4j.Logger,org.slf4j.LoggerFactory)} private static final Logger LOG = LoggerFactory.getLogger(${enclosing_type}.class); Log4J 2 ${:import(org.apache.logging.log4j.LogManager,org.apache.logging.log4j.Logger)} private static final Logger LOG = LogManager.getLogger(${enclosing_type}.class); Log4J ${:import(org.apache.log4j.Logger)} private static final Logger LOG = Logger.getLogger(${enclosing_type}.class); Source. JUL ${:import(java.util.logging.Logger)} private static final Logger LOG = Logger.getLogger(${enclosing_type}.class.getName());

How to clear the cache in NetBeans

Close NetBeans before deleting the cache. NetBeans 7.2+, Windows 7 Cache is located in C:\Users\<username>\AppData\Local\NetBeans\Cache\. Clear the cache using the %USERPROFILE% Windows variable: del /s /q %USERPROFILE%\AppData\Local\NetBeans\Cache\ If it is set, you can also use the environment variable %LOCALAPPDATA%: del /s /q %LOCALAPPDATA%\NetBeans\Cache\ NetBeans 7.2+, Linux Cache is at: ~/.cache/netbeans/${netbeans_version}/index/ Mac OS X Cache is … Read more

Eclipse/Java code completion not working

Try restoring the default options in ‘Windows > Preferences > Java > Editor > Content Assist > Advanced‘ An example of the kind of data you see in this preference screen, however not necessarily what you currently have. (From Vadim in this blog post ” Content Assist Duplicates in Eclipse (Mylyn)”: if have duplicate Mylyn … Read more

How to clear gradle cache?

Gradle cache is located at On Windows: %USERPROFILE%\.gradle\caches On Mac / UNIX: ~/.gradle/caches/ You can browse to these directory and manually delete it or run rm -r $HOME/.gradle/caches/ on UNIX system. Run this command will also force to download dependencies. UPDATE Clear the Android build cache of current project NOTE: Android Studio’s File > Invalidate … Read more

C++ IDE for Linux? [closed]

Initially: confusion When originally writing this answer, I had recently made the switch from Visual Studio (with years of experience) to Linux and the first thing I did was try to find a reasonable IDE. At the time this was impossible: no good IDE existed. Epiphany: UNIX is an IDE. All of it.1 And then … Read more