Positron IDE with Editor Color Themes (Public Beta)

Sdílet
Vložit
  • čas přidán 22. 07. 2024
  • Timeline ---
    00:00 Intro
    00:10 Positron IDE is a fork of open-source Visual Studio Code (VS Code / OSS - Code).
    00:19 Most VS Code themes will work in Positron IDE. Check vscodethemes.com for a list.
    00:26 Themes must be published on the OpenVSX registry to work in Positron, as it is the default marketplace for extensions.
    00:35 View installed themes in the Command Palette with CMD + K + T (macOS) or CTRL + K + T (Windows).
    00:46 Preview themes in the editor using the "Up" and "Down" arrows on your keyboard.
    01:09 Select a theme for all workspaces by pressing "Enter".
    01:21 Re-open the list of installed themes in the Command Palette with CMD + K + T (macOS) or CTRL + K + T (Windows).
    01:36 Select "Browse Additional Color Themes" to view themes on OpenVSX.
    01:44 Use the "Up" and "Down" arrows to preview uninstalled themes in Positron IDE.
    02:00 Themes that don't work with Positron IDE won't change the editor color scheme. The previous or default theme will be shown instead.
    02:31 Installing a theme after browsing.
    02:45 Allow Positron IDE to install the theme extension by pressing "Ok".
    03:05 Themes are installed under the extensions tab.
    03:37 Use the Command Palette to open "Preference: Color Themes" with CMD + SHIFT + P (macOS) or CTRL + SHIFT + P (Windows).
    04:13 View the theme and its subthemes in the installed theme list.
    04:28 Closing thoughts.
    Summary ---
    Within this video, we look at theming options available in the Positron IDE (Public Beta).
    As Positron is built on top of the open-source version of VS Code, the underlying theme technology is the same. Thus, you can use different VS Code themes inside of Positron. Some sample themes for inspiration can be viewed online at VSCodeThemes.com. However, if the theme is not cross-listed on OpenVSX, it cannot be used inside Positron.
    You can see a list of themes already installed with the command palette using Cmd+Shift+P (macOS) or Ctrl+Shift+P (Windows) and searching for "Preferences: Color Theme" or using Cmd+K+T (on macOS) or Cntrl+K+T (on Windows). Underneath this menu, you can use the Up and Down arrow keys on your keyboard to get a preview of the theme inside of the editor. Once you find a theme you like, press Enter to begin the theme extension install process from OpenVSX.
    Links ---
    Browse VS Code Themes online:
    vscodethemes.com/
    OpenVSX Marketplace with themes pre-selected:
    open-vsx.org/?category=Themes...
    Positron IDE ---
    Positron can be obtained from:
    github.com/posit-dev/positron
    This was demonstrated on:
    Positron Version: 2024.06.1 (Universal) build 27
    Code - OSS Version: 1.90.0
    Commit: a893e5b282612ccb2200102957ac38d3c14e5196
    Date: 2024-06-26T02:08:06.673Z
    Electron: 29.4.0
    Chromium: 122.0.6261.156
    Node.js: 20.9.0
    V8: 12.2.281.27-electron.0
    OS: Darwin arm64 23.5.0
    #positron #posit #rstudio #theme #vscode
  • Věda a technologie

Komentáře • 7

  • @matthewson8917
    @matthewson8917 Před 20 dny

    Hi! I'm wondering which software you're using for layout of the keyboard input on the bottom?

  • @carvalhoribeiro
    @carvalhoribeiro Před 20 dny

    Great and thanks for sharing this. Is it possible to edit a chosen theme and change/apply a different background color for example?

    • @thecoatlessprofessor7674
      @thecoatlessprofessor7674  Před 20 dny +1

      Yes, you can select a theme and, then, personalize it by adding into the user settings.
      Use CMD + SHIFT + P on macOS or CNTRL + SHIFT + P on Windows and search for:
      Preferences: Open User Settings (JSON)
      Next, use the following to change the sidebar color only under the Monokai theme:
      ```
      "workbench.colorCustomizations": {
      "[Monokai]": {
      "sideBar.background": "#347890"
      }
      }
      ```
      Switch [Monokai] with the relevant theme name and use relevant keys via:
      code.visualstudio.com/api/references/theme-color
      Section on Customizing a Theme:
      code.visualstudio.com/docs/getstarted/themes#_customize-a-color-theme

    • @carvalhoribeiro
      @carvalhoribeiro Před 19 dny

      @@thecoatlessprofessor7674 Awesome. Thank you so much.

  • @CidreRForest
    @CidreRForest Před 23 dny

    Hei! Do you know if there's some way to have different colour for code and output in the console?

    • @thecoatlessprofessor7674
      @thecoatlessprofessor7674  Před 22 dny

      Not that I'm aware of. I do know that if you directly write into the console there is some highlighting that is applied. However, once the code is executed then it is just treated as output.
      Since they tried to stick a bit close to what is possible with VS Code's theming, maybe check inside the theme file?
      github.com/posit-dev/positron/blob/f82368fc01eb72ff844d304174eeb81a585477ce/extensions/theme-defaults/themes/light_modern.json
      The reference spec for a VS Code theme is over at:
      code.visualstudio.com/api/references/theme-color
      You could also raise this as a question on the Positron repository's discussion board:
      github.com/posit-dev/positron/discussions