I want to change logcat messages color to another.
File > Settings > [IDE Settings] Editor > Color & Fonts > Android logcat
But, all options are disabled!
How I can do this?
You need to create your own scheme with the Save As... button and then uncheck the box in the bottom of the red circle in your screenshot (inherit attribute from:)
Extending 0xDEADCODE's answer, here are the colors based on Eclipse's ADT.
Editor > Colors & Fonts > Android Logcat > Info > [#21FF05]
Editor > Colors & Fonts > Android Logcat > Debug > [#00E8FB]
Editor > Colors & Fonts > Android Logcat > Warning > [#FF6C0C]
Editor > Colors & Fonts > Android Logcat > Error > [#FF040B]
Editor > Colors & Fonts > Android Logcat > Assert > [#E500FF]
Related
What is the shortcut to create a new line in Android Studio editor (like ctrl+enter in Visual Studio Code)?
I believe its Shift + Enter
If you want to change it ::
Go to File > Settings > Select Keymap > Select Editor Options > Start
a New Line
Shift + Enter
List of android studio keyboard shortcuts:
Android keyboard shortcuts
After updating to Android Studio 3.2.1 the XML files format is very annoying and bad, how can we fix it? Can we change it from somewhere in settings to previews type?
On Android Studio 3, Go to :
Preferences > Editor > Code style > XML then on Scheme switch to Default instead of Project.
You can then use those shortcuts to indent your code:
Windows:
Ctrl + Alt + L
macOS:
Option + Command + L
You can edit your code styles under File > Settings > Editor > Code Style > XML
If you want to preview a specific file, just paste that file's contents into the preview window.
Open File > Settings > Editor > Code Style > XML
Now in layout file make sure you have selected wrap attributes as Wrap always.
Screenshot
I want to change the Terminal font size. But I have no idea to do it.
Who can solve it?
in window : File - > Settings - > Editor - > Color scheme -> Console Font
File > Settings (Ctrl + Alt + S) > Editor > Color Scheme > Console Font
Thanks for everyone, I have solve it. I also do this steps some days ago, but it is not effective immediately. I try to do it once again just now and then restart AndroidStudio , Everything is OK. Thanks!
In Android Studio 3.0 File > Settings > Editor > Color & Fonts > Console Font....then click Apply and Ok
If you are android studio version above 3.0 :
File > Settings > Editor(expand it) > Color scheme(Expand it) > Console Font > Tick checkbox of Use console font instead of default > Enter size of font you want use > click Apply > Click Ok
I'm using command line for PhoneGap and after that I created the project I want to add platform. When I digit this: cordova platform add android, I have this error:
> npm http GET https://registry.npmjs.org/cordova-android/3.7.1
> TypeError: Request path contains unescaped characters.
> at new ClientRequest (_http_client.js:73:11)
> at TunnelingAgent.exports.request (http.js:49:10)
> at TunnelingAgent.createSocket (C:\Users\AppData\Roaming\np
> m\node_modules\cordova\node_modules\cordova-lib\node_modules\npm\node_modules\re
> quest\node_modules\tunnel-agent\index.js:117:25)
> at TunnelingAgent.createSecureSocket [as createSocket] (C:\Users\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\node_mod
> ules\npm\node_modules\request\node_modules\tunnel-agent\index.js:184:41)
> at TunnelingAgent.addRequest (C:\Users\AppData\Roaming\npm\
> node_modules\cordova\node_modules\cordova-lib\node_modules\npm\node_modules\requ
> est\node_modules\tunnel-agent\index.js:80:8)
> at new ClientRequest (_http_client.js:154:16)
> at Object.exports.request (http.js:49:10)
> at Object.exports.request (https.js:136:15)
> at Request.start (C:\Users\AppData\Roaming\npm\node_modules
> \cordova\node_modules\cordova-lib\node_modules\npm\node_modules\request\index.js
> :594:30)
> at Request.end (C:\Users\AppData\Roaming\npm\node_modules\c
> ordova\node_modules\cordova-lib\node_modules\npm\node_modules\request\index.js:1
> 186:28)
Can I fix it??? I set my proxy and the version of Android is 4.4W.2 (API 20)
It's related to the proxy, in this issue of ionic-cli people say downgrading node to 0.10.29 solves it.
Also, if downgrade is not an option, you can change the tunnel agent following this steps:
Replace the content of C:\Program Files (x86)\nodejs\node_modules\npm\node_modules\request\node_modules\tunnel-agent with the content of this zip: https://github.com/mikeal/tunnel-agent
Configure the proxy settings:
npm config set proxy http://proxy:port
set PROXY=http://proxy:port
I use Eclipse with ADT installed. And I have never really been able to import projects.
The thing is, when I do what tutorials tell me to do, which is:
My files:
> Username
> > Downloads
> > > Apps
> > > > Project1
> > > > > AndroidManifest.xml
> > > > > res
> > > > > src
Click import
Existing android application
Select root directory
I selected the folder ".../Username/Downloads/Apps"
Then select the projects you want and click next...
The problem is, the list of apps to import is empty after I select my path!
The way I do it is just selecting the folder containing th res and src subfolders, then use the option (checkbox) "Copy projects into workspace". Then finish