I'm using Notepad++ v6.6.7It's a very useful programming text editor, customization-friendly, with many external plugins, and FREE.
If we're usingPython
language, particularly, needs onlyspace
as the horizontal indentation.
Python
, then YAML
will surely be nearby.Tab
character for indentation in both languages will throw error.Front end languages such as HTML, CSS, and JavaScript aren't that picky about that. Mwell, JavaScript is, if we check our program with the super dooper JSLint.
Nevertheless, I like neat structure in my typed programs (or something similar).
Using
space
only as the horizontal space is nice to make the indentation consistent between languages.
So, if we change the
tab
character to space
, whenever we hit the tab
button, it will be interpreted as space
(s) in Notepad++.We can also customize how many spaces a tab character will be. The default value in Notepad++ will be 2.
First Step: Tab Setting
Go to Settings tab on your Notepad++.
Second Step: Customize It
You can pick a specific language for switching the
tab
► space
.On this picture below, I clicked the [Default]. Therefore, it will be applied to any programming language.
If you need to change a particular language, scroll to that language, click it, and untick the Use the default value, continued by customizing it to suit your need.
That's about it. A little something to enhance your indentation time with Notepad++.
Information Links
Java
language indentation, at JavaRanchPython
language indentation, at Python.orgYAML
language indentation, at YAML.orgGo
language indentation, discussion at Stack Overflow
No comments:
Post a Comment
Tell me what you think...