15 Feb

Windows 10 Bash Integration with Explorer

For many developers moving between development environments, it’s sometimes hard to leave the familiarity of Linux Bash commands. Fortunately, for those using Windows 10, a native Bash shell has made its way into the operating system. If you’re like myself you may have used the shift+right-click context menu to open Command Prompt windows at a specific location while browsing your file system in Windows Explorer. However, there isn’t yet the same thing available to open up the Bash shell at a given location in Windows Explorer.

As such, I’ve put together a simple registry script that adds the necessary entries into the registry to display a context menu when shift+right-clicking in Windows Explorer. You can view the code and run the script by downloading it from my GitHub here. If you’re not a Git user, you may download the zip file here.

Simply run the add_bash.reg file and you’ll be good to go!

02 Oct

Eclipse Code Formatter not formatting Javadocs properly

Today after developing a company formatter profile for developers to use on the Java source files, I ran into an interesting problem where the Eclipse Java Code Formatter was not obeying my rules. In particular, it appeared that it was not indenting the description following Javadoc @param tags nor adding a new line after the @param tags:


It also appeared to be related to my workspace; when adding my profile to a new workspace it worked as expected. However, I soon realized that the reason Eclipse was not processing my Javadoc comments was that I had set the Java Compiler > Javadoc to not process Javadoc comments. As such, if your code formatter rules appear to not be formatting Javadoc comments properly, double check to ensure your Java Compiler is set to process Javadoc comments in Eclipse (located under Window > Preferences > Java > Compiler > Javadoc):