When I set the syntax to CSS in Sublime Text 3, I get all the properties and values with the autocomplete. For example, if I enter "fl", the autocomplete suggests me "float", and when I press tab, it writes "float:". Then, when I press space, the autocomplete suggests me its values: left, right, etc. But with the SCSS syntax this doesn't happen: the values I got are html, body, section, nav, article, etc, etc.
The packages I have installed are:
CSS Extended Completions
Emmet
Emmet CSS Snipet
Sublime CodeIntel
Syntax Highlighting for sass
SASS
SCSS
I tried enable and disable different packages, searched for hours and tried many solutions, but nothing fixed the issue. Is there a way to show css values when using SCSS syntax? Thanks in advance.
Try installing CSS Extended Completions
installation instructions (sublime v3):
make sure you can install packages (instructions)
ctrl+shift+p
type: "install" and select install package
type: CSS Extended Completions and select it
Related
I suddenly find that my markdown files are being opened by a wysiwyg editor with chinese menus. No language is detected and searching through my extensions gave no hint. How do I figure out which extension is active?
In general, there is a command called "Developer: Show Running Extensions" that you can activate from the command palette.
In this case, I see a weird spelling in that screenshot: "Vditor".
Searching for that word finds a few pages, including one whose title is "vditor VS vscode-markdown-editor". From that page, I found Vanessa219/vditor.
That project claims to be
An In-browser Markdown editor, support WYSIWYG (Rich Text), Instant Rendering (Typora-like) and Split View modes
but not a Visual Studio Code plugin.
However, the extension vscode all markdown says it is "powered by" Vditor. I suspect you'll find that's the plugin to disable.
There is also something called vscode-office. It uses Vditor for Markdown out of the box, but this can be disabled:
It change markdown editor as vditor, it's WYSIWYG editor for markdown...
if you want using vscode editor, insert below json to vscode config.
"workbench.editorAssociations": [{
"viewType": "default",
"filenamePattern": "*.md"
}]
I'm using rust-analyzer 0.2.654 (latest) on VS Code 1.57.1 (also latest) on Windows 10.
The autocomplete displays all keywords, as shown below:
How can I hide the keywords, displaying only the actual struct members?
You can disable this in the settings UI by navigating to Text Editor > Suggestions > Show Keywords:
Or alternatively disable it via settings.json by including:
"editor.suggest.showKeywords": false,
You also need to disable "Postfix completions" otherwise you get a load of completions like dbg, match and so on which are really automatic snippets rather than actual struct members.
How can I remove the red lines in Netbeans, I've tried to use another dictionary but doesn't work.
This seems to be a behaviour caused by NetBeans Spellchecker. Pressing Tools > Options > Editor > Spellchecker you can mark/unmark what type of files you want to check spell for. By default the spellchecker is on for html files, so unmark HTML/XHTML there - to disable spellchecking for files of these types.
I am trying to work on a react with flux project using VS Code. The VS Code will give errors and warnings for the JSX in the .js files. I keep the .js extension instead of .jsx as I want the intellisense from VS Code.
How can I have JSX validation and highlighting in .js file in VSCode? Or, is there a way to have proper JSX validation and keep the intellisense in VSCode at the same time?
VSCode (v1.0.0) added new way to associates files. Select language mode and choose Configure.. . To add jsx syntax capabilities and goodies in your file you can edit the file.associations.
"files.associations": {
"*.js":"javascriptreact"
}
If I understand you correctly, if you have a .jsx file extension or manually select the JavaScript React language mode, you get validation and highlighting, but no IntelliSense. If you change the language mode or file extension to JavaScript, you get IntelliSense but don't get the validation and highlighting.
To manually select a language mode, open the command palette (ctrl+shift+p or cmd+shift+p) and start typing 'language'. Select 'Change Language Mode' and then select 'Javascript'.
Unfortunately for now there is no way to have both at the same time. You'll have to wait for the language services to be updated or try to create your own extension to fill the void.
I installed the HAML textmate bundle, that display syntax highlight for .haml templates, but I also have Coffee HAML templates that are named like
layout.jst.hamlc
and I would like to add syntax highlight as well.
The Ruby Haml syntax is good enough, so I usually just change the language to Ruby Haml,
but then when I close and open the file again, Sublime Text 2 forgets it and I have to assign it again and again.
Is there a way to automatically assign the ruby Haml syntax highlight for .hamlc files?
In the language selection menu (click on "Plain Text" in the bottom right), at the very top is "Open all with current extension as", which expands to another list of languages. Pick User > Rails > Ruby Haml from there and it will remember that for hamlc files.
I just added a hamlc syntax definition to package control for Sublime.