OK, you are tired of default Codemirror suggestion, which suggest just everything, you want to have only suggestion for properties which you wrote earlier, see this:Suggestions and syntax highlighting are based on type of Codemirror token. So when CSS is valid it works, but what about Invalid CSS boxes where you write yours Custom-CSS and there is no selector in text to determine when property should be suggested. Keep reading.