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

Diff view options for case insensitivity and intra-line whitespace difference ignore

Open mattgodbolt opened this issue 8 years ago • 2 comments

monaco-editor npm version: 0.8.0 Browser: All OS: All

I'm using monaco's diff view to show differences between different compiler output, and a requested feature is to ignore intra-line whitespace and make the diff case insensitive. For example: https://godbolt.org/g/rAaEha shows intra-line whitespace differences.

mattgodbolt avatar Feb 12 '17 15:02 mattgodbolt

+1 on whitespace insensitivity. It's possible to condense all mid-line whitespace into a single space before adding to the diff but it's not particularly elegant, and sometimes breaks formatting for things like comments.

olane avatar Apr 05 '17 09:04 olane

+1 for whitespaces. Have not found but is it possible to implement custom diff?

Frozik avatar Aug 29 '22 14:08 Frozik

You can get this feature by customizing the diff algorithm.

hediet avatar Feb 24 '23 10:02 hediet