I just downloaded the new version of Notepad++ and I am finding that it is making my Python code edits incompatible with old code due to using spaces instead of tabs. Can I set Notepad++ to use tabs not spaces?
Related
I recently switched from Brackets to VS Code and I can't find a specific keyboard shortcut that I used regularly on Brackets, and I can't custom create it because I don't know how to correctly describe the command to the program.
On Brackets I used to use the keyboard shortcut Shift+Ctrl+A and with a few lines selected it would let me format the complete selection. It opened a one-line command screen on the bottom and it would let me add up different tags for HTML for example. Let's say I had a few paragraphs that I needed to format into an ol, once selected I would simply type: ol>li* in the command screen and it would automatically format the whole selection.
English is not my first language so sorry if the explanation is kind of weird! I've been searching for a solution to this for some days and I'm getting nowhere.
Things I already tried/worth noting:
Installed the Brackets keymap extension (I went through all of the keybinds and couldn't replicate this)
Checked VSCode keybinds list.
I, unfortunately, uninstalled Brackets and can't take a screenshot of the thingy. I am regretting this so much already. I should have been more aware of the keyboard shortcuts and whatever extensions I had installed.
Maybe it has to do with an extension that I'm forgetting to install?
So version before 1.30 worked fine, and did close the Tags in .html file, but as of 1.30 update I can't finish and then try to close it with
I have tried to delete config.json file, also tried to turno on every possible option for auto-close and auto-complete tags in options, but nothing worked.
And Sublime it's working fine. I downloaded plugin to transfer Sublime confing into Visual Studio Code but without success. Hope you can help me out, since i've been trying to fix this problem 3 hours now.
I had the same problem, then I noticed that my select language mode was something like Django HTML. Solved after changing it.
You might have opened a file before that changed the language mode. So first, check the language shown at the bottom-right of the VS Code window (status bar), then follow the steps bellow.
Go to settings (or edit the settins.json file) and search emmet.includeLanguages, then press add item under Emmet: Include Languages. input the language you are using in item field and html in value field.
When I create projects in PhpStorm some files have spaces for tabs and some have tabs.
I have checked show whitespaces in settings > editor > appearance - which I am assuming I supposed to be a IDE level setting, but still the behaviour is inconsistent.
Also if a file is created by an external source, PhpStorm seems to adopt whatever spacing the file has also.
Even after enabling use tabs Phpstorm uses spaces, is this because Phpstorm is using a file-specific configuration - which is overriding both the project level and IDE level settings?
Does Phpstorm have any option which allows you to define a setting - e.g. use tabs and have the setting apply to all files, even if they were generated by a program which used spaces instead of tabs?
I am trying LESS live edit in Firefox and Chrome. For some reason, something in toolchain adds extra new lines, so that when .less source is viewed in the browser live editor all new lines are doubled.
This can be observed with both Firefox and Crhome.
My lessc command:
node_modules/less/bin/lessc less/libertymusicstore.less css/libertymusicstore.css --source-map
I am running on OSX. What could cause the extra new lines and how to get rid of them?
Apparently source .less files had been in some point been edited on Windows. This had caused Windows new lines to appear in the file, though the text editor (Sublime Text) picked the line endings as UNIX ones.
Converting the file newlines to Windows and then back to UNIX cured the issue and now both Chrome/Firefox identify newlines as UNIX newlines correctly.
I keep running across a problem where source code that uses tabs to line up key/value assignments is displayed differently in different editors.
For instance, a file on Github in both the highlighted and raw versions shows the $labels array at line 55 with mis-aligned spacing. It also looks that way in Notepad.
But, that same file, copied into Aptana or Notepad++ will display the values lined up perfectly.
Why does that happen, and is it possible to create the file in such a way that it will be displayed correctly across all editors?
Depending on your settings in each editor, they will each use a different number of spaces for a tab.
Some use 2, some use 3, some use 4, and some use 6. You can see by highlighting one of the tabs in github, the tab takes up 8 spaces.
This should be adjustable in the editor.
If you create a file in an editor that uses a particular number of spaces, and view it in an editor that uses a different number of spaces, things will look different.
There has always been a debate about whether to use spaces or tabs for indentation. It's a personal preference thing, but using spaces rather than tabs will prevent this issue.
You should be able to set your editor to use spaces instead of tabs.