Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>logcat-colorNew to Visual Studio Code? Get it now.
logcat-color

logcat-color

Raid Xu

|
12,111 installs
| (3) | Free
Android logcat colorizer
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

logcat-color README

Add color to logcat logs.

Sometimes we need to copy a chunk of logcat to Code for further analyse, this extension might help.

To activate the extension, press Ctrl+Shift+P to open Command Pallette, and choose "Change Language Mode" -> "Logcat".

Features

  • Color (the default colors are controlled by your color theme)

  • Customizable color

    • You can change the color of each log level, in your settings.json, e.g,
      "editor.tokenColorCustomizations": {
          "textMateRules": [
              {
                  "scope": "markup.other.logcat.verbose",
                  "settings": {
                      "foreground": "#BBBBBB"
                  }
              },
              {
                  "scope": "markup.quote.logcat.info",
                  "settings": {
                      "foreground": "#FFFFFF"
                  }
              },
              {
                  "scope": "markup.changed.logcat.debug",
                  "settings": {
                      "foreground": "#23AAFF"
                  }
              },
              {
                  "scope": "markup.inserted.logcat.warning",
                  "settings": {
                      "foreground": "#F0ED00"
                  }
              },
              {
                  "scope": "markup.deleted.logcat.error",
                  "settings": {
                      "foreground": "#FF6B68"
                  }
              },
              {
                  "scope": "markup.deleted.logcat.assert",
                  "settings": {
                      "foreground": "#FF6B68",
                      "fontStyle": "underline"
                  }
              },
              {
                  "scope": "entity.tag.logcat",
                  "settings": {
                      "foreground": "#00E",
                      "fontStyle": "bold underline"
                  }
              }
          ]
      }
    
    • You can also change the color of some part of log line, with one of scopes "entity.date.logcat", "entity.time.logcat", "entity.pid.logcat", "entity.tid.logcat", "entity.package.logcat", "entity.level.logcat", "entity.tag.logcat", "entity.message.logcat"
  • Support Android Studio output with different configurations and also raw output from "adb shell logcat"

    • You can disable any part of the logcat in Android Studio
    • You can change the time format to "seconds since epoch" in Android Studio
    • You can also copy logcat output directly from "adb shell logcat"
  • Calculate the duration of logs of your selection (inspired by Log File Highlighter)

    • The duration is calcualted from the line of the start of your selection until the end of you selection

Imgur

Known Issues

Release Notes

0.0.1

Initial release

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft