This question already has answers here:
Is there a shortcut to make a block comment in Xcode?
(21 answers)
Closed 5 years ago.
How can we comment multiple lines in Xcode 9. I know about Command + /
But This inserts // in front of every selected line.
But I want it like /*......*/
Xcode does not provide that type of comment (/* .. */) in shorthand in any version so nothg different in x-code 9 regarding this,
check this -> https://forums.developer.apple.com/thread/49473
So for code commenting do anyone of follow
cmd+/ is used for // the multiple lines,
For /* ... */ either you have to manually
can create code snipplet. No other option is available.
Code Snipplet
Related
This question already has answers here:
VBScript to read specific line and extract characters and store it as a variable
(2 answers)
How to delete the first row in the .csv file
(2 answers)
Closed 5 years ago.
I want to read a specific line from the text file using VBScript.
I have explored Read and ReadLine methods but I can't able to read only specific line from text file. (I have 1000 of line but I want to read only 99 or 200 or 500 line only)
The question may be similar to the questions those duplicate hunters pointed to, but the answers are - for different reasons - of no use. A good answer could be build from one answer to the completely different question here.
Now to the answer:
Use a .SkipLine loop to read to the line before you are interested in and get it using .ReadLine.
This question already has answers here:
Commas in WPF Pack URIs
(2 answers)
Closed 7 years ago.
I am working on some code that has paths that look like this:
"pack://application:,,,/FOO.Bar.Baz;component/Gorp/bazzle.xaml"
What do the 3 commas mean, and what is this path referencing?
Typically they are placeholders for parameters that were not supplied. It usually means ... "use the default values" for those parameters.
This question already has answers here:
#pragma mark in Swift?
(20 answers)
Closed 8 years ago.
I want to organize my code by sections. usually I used #pragma mark - Section Name
but when I try to do so in a .swift file it doesn't work.
So my question is if I can somehow enable it and if not what is the way to organize my code in sections in a .swift file?
Use something like that:
// MARK: - UITableViewDataSource
Or use extensions: I love the way how UITableViewDataSource delegate is implemented in this answer
This question already has answers here:
How to do a mass rename?
(11 answers)
Closed 9 years ago.
I have to change
<<STORE>>SA_MASTER_YYYMMDDHHMMSS.dat file name to
SA_MASTERYYYMMDDHHMMSS.<<STORE>>. Please tell me the command in unix to achieve this
for example
0001.SAMASTER_YYYYMMDDHHMMSS.DAT should be changed to SAMASTER_YYYYMMDDHHMMSS.1 ie if the store has leading zero(0001) i have to eliminate the zeros(1)
use mv.
e.G. mv 0001.SAMASTER_YYYYMMDDHHMMSS.DAT SAMASTER_YYYYMMDDHHMMSS.1
For the interpretation you will need to write some script.
See How to do a mass rename? for further answers.
Of course, the direct method is using mv. However, if you want to rename a lot of files' names, you need write a program, you need sed,cut and so on
This question already has answers here:
Closed 12 years ago.
Possible Duplicate:
How do I enable line numbers in VS2008?
how to get line number in code editor in vs2008?
Tools...Options...Text Editor....All Languages... Display... Line Numbers.
go to tool>option>text editor check 'line number'