CodeAssist v0.2.2 ALPHA
Pre-release
Pre-release
Layout Editor Improvements
- Views will now be inflated with styles (the one specified in the manifest), Views using attributes such as
?attr/colorPrimary
will now get the color from the styles. - Added TextInputLayout and TextInputEditText support (using styles with it may not produce expected results yet, drag and drop may not work as expected as TextInputLayout has an intermediate FrameLayout inside)
color, dimen, inset, selector
tags are now parsed in resources.- Android xml attributes are now stored in app's assets folder and will also be included in parsing for layout preview.
- Xml files of libraries that you have will now be included in parsing for layout preview.
- You can now write common view class names without their fully qualified class names (
Button
instead ofandroid.widget.Button
) - Added material parser factory, common view class names will now be replaced with their material view equivalent. (turned on by default,
Button
will be replaced tocom.google.android.material.button.MaterialButton
- If an attribute has been set to empty, it will automatically be removed.
- When an attribute has been removed, the view that the attribute is associated with will now be recreated to remove the attributes.
- Required width and height attributes are now automatically added when using the drag and drop editor.
Code Completion and Code Highlighting
- Asynchronous highlighting, java and kotlin error highlighters are now run in background and will be canceled accordingly as the user types.
- The app now supports real-time error highlighting for Kotlin. (Turn it on in settings, make sure that code completion for kotlin is off as its still unstable with code completions turned on.)
- Generic types are now displayed properly in code completion list.
- Fixed deadlocks causing code completions and error highlighting to completely stop functioning before.
Better External Keyboard Support (Keyboard shortcuts)
alt + space
Force the completion window to open at the cursor positionalt + enter
Show context actions or quick fixes based don the current cursor position.shift + enter
Add a new line regardless of column position.
Context Actions and Quick Fixes
- View javadoc action, quickly view the documentation of the selected code. (Currently there are a few comments because including the sources in the app will significantly increase its size)
- Diagnostic information action, if the current selected code has an underline in it, this action will show information about what the error or warning is.
Logs
- Logs of built APKs should now be shown consistently (Unless the app crashed before onCreate is called.)
- Errors of the current file you're editing are now shown in real-time, just swipe up from the bottom and navigate to the
Debug
tab.