leetcode-editor icon indicating copy to clipboard operation
leetcode-editor copied to clipboard

No color highlight

Open zeroarst opened this issue 1 year ago • 1 comments

I have customized color scheme. It works fine on my project. But for leetcode Kotlin files, it does not apply those colors. Leetcode Kotlin file image

Project Kotlin file. image

Does anyone know how to fix that?

zeroarst avatar Jul 25 '24 11:07 zeroarst

Hi, @zeroarst . I met the same problem. All I did to solve it is as follows:

  1. New a project only for leetcode;
  2. Open Setting -> LeetCode Plugin 2.1. Select Kotlin in CodeType; 2.2. Change the TempFilePath to your project, for me is F:\Projects\leetcode\src\main\kotlin\com\example; 2.3. Enable the Custom Template, and set the Code Template to what you like and comply with the kotlin project pattern, for me is
${question.content}
package com.example.leetcode.editor.cn;
fun main(){

}
${question.code}
  1. Enjoy your coding time!😎

3maoyap avatar Aug 04 '24 10:08 3maoyap