leetcode-editor
leetcode-editor copied to clipboard
No color highlight
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
Project Kotlin file.
Does anyone know how to fix that?
Hi, @zeroarst . I met the same problem. All I did to solve it is as follows:
- New a project only for leetcode;
- Open
Setting->LeetCode Plugin2.1. SelectKotlininCodeType; 2.2. Change theTempFilePathto your project, for me is F:\Projects\leetcode\src\main\kotlin\com\example; 2.3. Enable theCustom Template, and set theCode Templateto 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}
- Enjoy your coding time!😎