You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Most of the features seem to break down when trying to write code inside of an inactive code fragment, such as when blocking code off with preprocessor directives:
#define X 1
#ifdef X
- this area works great
#else
- this area throws fits
#endif
When typing code inside of an inactive portion, the auto-completions and other utilities fail to function correctly. I'm not sure what causes this to happen, but I would recommend only changing the syntax color of inactive areas. It is very common to use preprocessor directives to convert one shader into multiple shaders, so the inactive portion is usually just as important as the active portion.
Perhaps we could even have an option to completely disable the syntax changes of inactive code, so that all sections appear to be active at once? But if not, we definitely need to be able to write code in them, which is currently not very feasible. For example, even if I have a variable named g declared, if I type "g = ", I get "else =".
Since I'm doing a lot of complaining, I wanted to mention how much I love this addon! It is incredibly useful! Thanks!
The text was updated successfully, but these errors were encountered:
Most of the features seem to break down when trying to write code inside of an inactive code fragment, such as when blocking code off with preprocessor directives:
When typing code inside of an inactive portion, the auto-completions and other utilities fail to function correctly. I'm not sure what causes this to happen, but I would recommend only changing the syntax color of inactive areas. It is very common to use preprocessor directives to convert one shader into multiple shaders, so the inactive portion is usually just as important as the active portion.
Perhaps we could even have an option to completely disable the syntax changes of inactive code, so that all sections appear to be active at once? But if not, we definitely need to be able to write code in them, which is currently not very feasible. For example, even if I have a variable named
g
declared, if I type "g =
", I get "else =
".Since I'm doing a lot of complaining, I wanted to mention how much I love this addon! It is incredibly useful! Thanks!
The text was updated successfully, but these errors were encountered: