I don’t want spaces when I tab in visual studio 2010
Tools > Options > Text Editor > All Languages > Tabs > enable “Keep Tabs”. You can also adjust this setting on a per-language basis.
Tools > Options > Text Editor > All Languages > Tabs > enable “Keep Tabs”. You can also adjust this setting on a per-language basis.
Highlight/ select the lines you want indented, then press TAB as often as needed until they reach the proper indent level. You can remove spaces with SHIFT TAB. You can also use CTRL+ALT+I to auto-indent the selection.
(If you are using bash 4, scroll to the end for what I think is the best combination of pure shell and readability.) For heredocs, using tabs is not a matter of preference or style; it’s how the language is defined. usage () { ⟶# Lines between EOF are each indented with the same number … Read more
I’m trying to figure this out myself. Not there yet, but in the right direction: Each Mission Control “space” gets a uuid assigned to it… …except for the very first one (AFAIK), and the Dashboard one. You can read them here: $ defaults read com.apple.spaces $ defaults read com.apple.desktop File locations: ~/Library/Preferences/com.apple.spaces.plist ~/Library/Preferences/com.apple.desktop.plist Here’s mine. … Read more
Clear all non-ASCII characters of file.txt: $ iconv -c -f utf-8 -t ascii file.txt $ strings file.txt Options: -c # discard unconvertible characters -f # from ENCODING -t # to ENCODING
Easiest and most efficient don’t usually go together… Here’s a possible solution for in-place removal: void remove_spaces(char* s) { char* d = s; do { while (*d == ‘ ‘) { ++d; } } while (*s++ = *d++); }
Execute it like this: “$VAR”. This is one of the most significant gotchas in shell scripting because strings are always substituted literally and any contained spaces are treated as token delimiters rather than as characters of the string. Think of substituting a variable as a kind of code pasting at runtime. What really happens when … Read more
I looked at http://cocoadev.com/wiki/DontExposeMe searching for workaround nothing really worked except. self.window.level = kCGDesktopWindowLevel; now maybe DETECT changes to expose and set that then 🙂 … see How can one detect Mission Control or Command-Tab switcher superseding one’s program in OS X? for that 🙂 maybe an answer will come up there
You should take the spaces out of the filename. Because the filename is used as the identifier for imported modules (i.e. foo.py will be imported as foo) and Python identifiers can’t have spaces, this isn’t supported by the import statement. If you really need to do this for some reason, you can use the __import__ … Read more
For those who can’t parse arguments and still get “error: unrecognized arguments:” I found a workaround: parser.add_argument(‘-d’, ‘–dmp’, nargs=”+”, …) opts = parser.parse_args() and then when you want to use it just do ‘ ‘.join(opts.dmp)