Modify comment symbols in Netbeans - netbeans

I'm using Netbeans 11, and I have now switch from Ruby sass to Dart sass.
The thing is that when I comment a block of code on my .scss files, they are commented like that:
#mixin test($var){
/*color:red;
font-size: #{var}*10;*/
color:blue;
}
The thing is that now in Dart sass, what's in between the /**/ is compiled and raises sometimes errors. Though I just want to comment it. So I would need to comment this way:
#mixin test($var){
//color:red;
//font-size: #{var}*10;
color:blue;
}
This is fine for 2 lines, but sometimes I need to comment big blocks, and Netbeans is not using the // but /**/. So is there a way to change the default commenting of Netbeans for .scss files? I mean this has to be somewhere since you can sometimes comment in blocks with #.
Any help would be greatly appreciated. Thanks a lot in advance!

Unfortunately, you can't do it. NetBeans matches file extensions with corresponding FileTypes (MIME). For each FileType, there is parsing implementation for it and it handles commenting and uncommenting. It does it differently for each mime type and usually, it is deep in the code of NetBeans.
If you are interested, the code for commenting css/scss files is here and here.
I suppose alternatively you could use a cool feature called multiline editing. It allows editing multiple lines simultaneously. See here for example.
So just
Move the cursor to the right
Press ctrl+shift+R
Press the mouse and move the cursor up, as if you are selecting the region.
Press //
Press ctrl+shift+R
For commenting it looks like this:

Related

How do I get imports to show up when I press ctrl+dot in javascript in vscode?

When writing JSX (or any typescript code really) if you have an available import that's not yet imported, you get a squiggly line under it and can press ctrl+dot on it and then automatically import the code as a "refactoring."
How can I set this up in Javascript? I've seen a screenshot of someone else's VSC where it is available underneath "more options" and so I'm pretty sure it's possible, but when I press ctrl+dot I get nothing.
Note: I'm aware I can press ctrl+space. However, I don't want to do this, for two reasons. (1) alt+space is pretty bad UX because if you press it in the middle of a word it continues to autocomplete even if you already had the full name there and so you are left with an incorrect tag (e.g. if your cursor was after the d in Keyboard for a component called KeyboardRow you are left with KeyboardRowRow) and (2) I want to rebind quick fix to alt+enter to match pycharm; and I want the same hotkey & UX in both Typescript and Javascript.
I haven't worked too much with JS, mainly with TS, but I have two extensions installed in my vscode that helped me a lot while coding in vanilla JS.
Path intellisense and Auto import
You can try if My Code Actions can be used to construct a Quick Fix for these types of PROBLEMS/squiggles

Format only pasted code segment in VSCode, not entire document

Is there a way to do so? I find a lot of my time is taken up correcting indentation formatting in VSCode after pasting, because it seems to sometimes take the source indenting and apply it at the destination (so the entire pasted code block is at the wrong indent level) or worse, just mess up indents entirely (no idea what's going on here) and I need to manually fix every line.
Example use case, for single PHP files which contain PHP, HTML, and Javascript, I often only want the pasted Javascript block to format nicely. Turning on "paste on format" will format the entire document, often times making the PHP sections awkwardly arranged.
I know that VSCode has "format on paste" in settings, but this formats the entire document. How can I format only the pasted code? Is this even possible?
Thank you
I am not certain whether you're fine with this roundabout solution, but you can format selection with Ctrl+K Ctrl+F (see official vscode site for more detail). So rather than turning on format on paste you can paste and then reselect it and do the shortcut above.
If you're not satisfied with this method, you can try using a vscode extension that was given here under a somewhat similar copy and paste problem

How to have JSDoc style comments autocomplete in sass files in VSCode?

I use JSDoc syntax to document a lot of parts throughout all my apps.
I often need to make some minimal documentation for SASS variables as well.
However, while any JS/TS/Vue file works really well with JSDoc style comment blocks in VSCode, Sass files seem to try and work against me when trying to type a JSDoc comment...
I know it's possible by just adding some sort of snippet that expands into a JSDoc comment block, but the problem is when pressing ENTER, in JS/TS/Vue files it automatically adds the proper indentation and * in front of the new line inside the comments.
In Sass files, not only is the indentation is consistently wrong when pressing ENTER in a comment block and it's not helping me at all by adding * or the closing */ tag...
I have looked all over the extensions of VSCode as well, but couldn't find anything that helped.
Does anyone know how I can solve this issue?

VSCode Comments aren't inline

I use VSCode and I think its a great editor, but when I write a comment in html it drops to a new line under what I'm commenting which is really irritating.
If I comment a closing div I want it next to the closing div not under it.
I have uninstalled prettier but that made no difference.
Is what I want even possible in VSCode?
Any advise would be appreciated because I am so irritated that I am considering using a different editor (I'm on a Mac just in case it matters).
Thanks in advance.
This was a problem for me too, as were other new line / white space related HTML issues.
Assuming you are not using any formatters besides the native VSCode HTML language features (you said you uninstalled prettier, but you didn't mention whether you were using something else),
there is a setting HTML white space which you can set to preserve to leave your comments untouched.
Note that you may need to go into settings and check what is being used as the HTML default formatter

How to stop FlashDevelop suggestions in text files

I'm using FlashDevelop 4.6.1.30 in Windows, using it with HaxeFlixel.
The autocomplete suggestions appear when editing code - this is wanted, it is good.
They also appear when editing text files though - this is not wanted, it is not good.
Specifically, if I create a new text file in flash develop (so the file is called "readme.txt" or something), after typing a few words, FD tries to "guess" what I'm typing and pops up the suggestions list. This, of course, makes no sense when trying to type out things that aren't code.
Yes, I've seen this Flashdevelop - Disable autocomplete for txt files and no, it doesn't work - even after a restart.
Here is a screenshot showing it not working...
Can confirm, setting that option doesn't prevent completion in .txt files. Consider opening an issue on the FlashDevelop repository.
Looks like a bug.
For now you can simply disable the BasicCompletion plugin (check Disable and restart FlashDevelop).