Editor Tips


Many of these tips have been gleaned for the tip of the day in DevStudio. You can modify and add to the list of tips that DevStudio will show you by editing the file 'MSDEV.TIP' and 'VCXX.TIP' in the IDE directory under the BIN directory.
  • You can convert tab to spaces or vice versa using the Tabify and Untabify commands. You can find this command in the "Edit | Advanced" menu.
  • You can start an incremental search by pressing Ctrl-I.
  • To open the .RC file as text, click the Open command on the File menu and change the Open As option to Text.
  • You can automatically indent and format your C/C++ code with the "Smart Indent" feature turned on. You can find this feature on the Tabs tab in the Options dialog. If you already have code that is not indented properly, select the code and pick the "Edit | Advanced | Format Selection".


Comments

  • I get "the file is being used by another application " when i save after compile

    Posted by Legacy on 11/20/2003 12:00am

    Originally posted by: My3

    in msdev.. if i save my application after compiling with errors . (or without errors) .. i get a the above message.If i click again i can save my file.

    Shift +f5 to shift from debug mode to editing mode does'nt work ..
    help !!! this is really bugging me

    Reply
  • Scrolling and keeping the cursor fixed

    Posted by Legacy on 08/05/2002 12:00am

    Originally posted by: Andy Smith

    Here are two macros which I find useful. The first moves the current line up without changing the position of the cursor on the screen (assign this to the keys Alt+Up Arrow). The second does the same for moving down (assign this to the keys Alt+Down Arrow).

    '------------------------------------------------------------------------------
    'FILE DESCRIPTION: New Macro File
    '------------------------------------------------------------------------------

    Sub LineScrollPageDown()
    'DESCRIPTION: A description was not provided.


    'Begin Recording
    ExecuteCommand "WindowScrollUp"
    ActiveDocument.Selection.LineDown
    'End Recording
    End Sub

    Sub LineScrollPageUp()
    'DESCRIPTION: A description was not provided.


    'Begin Recording
    ExecuteCommand "WindowScrollDown"
    ActiveDocument.Selection.LineUp
    'End Recording
    End Sub

    Reply
  • Browsing Short cut

    Posted by Legacy on 01/23/2002 12:00am

    Originally posted by: Z Mohamed Mustafa

    To browse through the code u can use Alt+F12 key (select an identifier.
    gives call graph, base class members , definitions and many more , just use it and see how powerful it is.

    Reply
  • Stop the formatting on Code

    Posted by Legacy on 01/14/2002 12:00am

    Originally posted by: Buffy Slay

    is there any way of stopping VStudio from hard carriage returning mid way through a line when you edit something in design view?
    
    

    eg

    i like
    (all on one line)
    1111111 111111 111 11111 111111 1111111111 111 111 1 111111

    vStudio seems to like
    1111111 111111 111
    11111 111111 1111111111
    111 111 1 111111

    many thanks
    http://www.buffyslay.co.uk

    Reply
  • Ctrl+F2 to mark a line

    Posted by Legacy on 01/04/2002 12:00am

    Originally posted by: Mike

    You can "mark" lines in the text editor with Ctrl+F2.
    F2 will then move you to the next marked line.
    Ctrl+F2 again to unmark a line.

    Reply
  • Editor Line Numbers

    Posted by Legacy on 10/26/2001 12:00am

    Originally posted by: Addy

    Is there a way to have the VC++ editor display line numbers in the margin? Like in UltraEdit.

    Thanx,
    Addy

    Reply
  • Help i need help!!!!! SOS SOS SOS

    Posted by Legacy on 10/14/2001 12:00am

    Originally posted by: Peter

    Help i need help

    I need to know where can i find all the codes for VC++ because i just wan't to try out the p0rogramm without any one helping me by just trying i can learn a lot faster and also be more careful with my computer. and dose any one know wich book i should read for all my questions?

    Thank you.

    sincerely,

    Peter

    Reply
  • Workspace window

    Posted by Legacy on 09/29/2001 12:00am

    Originally posted by: Upendra Acharya

    If workspace window is closed you can enable it by Alt+0.
    This is very useful when you want to switch from files to resources or class definitions.

    Reply
  • VC5 IDE: Can you customize smart-indent rules?

    Posted by Legacy on 01/18/2001 12:00am

    Originally posted by: Brook Heimbaugh

    Using Alt-F8 to format a block of code is a godsend, especially when many people have edited the code before you using different editors and styles. However, sometimes you don't get exactly the result you want (examples available upon request).

    Is there any way to modify the formatting rules in VC5 (or VC6)?

    Reply
  • Text Selection

    Posted by Legacy on 04/28/2000 12:00am

    Originally posted by: Rajashekhar Hiremath

    Select shift+Alt and use mouse to select the specific columns of text.

    The same can be achieved by holding just Alt key along with mouse

    Reply
  • Loading, Please Wait ...

Leave a Comment
  • Your email address will not be published. All fields are required.

Top White Papers and Webcasts

  • Live Event Date: August 13, 2014 @ 1:00 p.m. ET / 10:00 a.m. PT If you are developing applications, you'll want to join us to learn how applications are changing as a result of gesture recognition. This technology will change how you and your users interact - not simply with your devices, but with the world around you. Your devices will be able to see and hear what your users are doing. Are your applications ready for this? Join us to learn about Intel® RealSense™ Technology, including never been …

  • Mobile is introducing sweeping changes throughout your workplace. As a senior stakeholder driving mobile initiatives in your organization, you may be lost in a sea of technologies and claims from vendors promising rapid delivery of applications to your employees, customers, and partners. To help explain some of the topics you will need to be aware of, and to separate the must-haves from the nice-to-haves, this reference guide can help you with applying a mobile strategy in the context of application …

Most Popular Programming Stories

More for Developers

Latest Developer Headlines

RSS Feeds