Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!news.stack.nl!newsfeed.xs4all.nl!newsfeed3a.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.032 X-Spam-Evidence: '*H*': 0.94; '*S*': 0.00; 'that?': 0.05; '22,': 0.09; 'cc:addr:python-list': 0.11; 'from:addr:pobox.com': 0.16; 'from:addr:skip': 0.16; 'sender:addr:gmail.com': 0.17; 'wrote:': 0.18; 'aug': 0.22; 'cc:addr:python.org': 0.22; 'skip': 0.24; 'cc:2**0': 0.24; 'header:In-Reply-To:1': 0.27; 'statement': 0.30; 'message-id:@mail.gmail.com': 0.30; 'code': 0.31; 'lines': 0.31; 'that.': 0.31; 'probably': 0.32; 'text': 0.33; 'fri,': 0.33; 'received:google.com': 0.35; 'add': 0.35; 'there': 0.35; 'similar': 0.36; 'depends': 0.38; 'pm,': 0.38; 'either': 0.39; 'commands.': 0.84; 'everything.': 0.84; 'subject:Global': 0.91 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=d6I/kplcj/GmnYjl5cel1H3K2dwAhuMPWLACf84CYzw=; b=wnQov2TKFjfj7a+jUp5C9Rh9KuRjY5oYjGUkF8si8V8dym6OFIkTMAKi9qluxBMca3 bsqUtGGQ09IZYpOPG1zUbJSauxQNx73UCFF/BVVuVDGJMnkkSKyMWS8D9RRPwLBzrEyI kAgi3aRvfDoSsmJbvtundiubzBISi9/3svEbaoIpqPOFUhTbeFNidHHy+1FOLEMImtfH MucESkOH1Fug7sxCJMsO5FAUSTEpehLH1RQhZYmugBWuo+/iVlrXmcVtnw7wVoURgvTU rez5DWpmXu3Y2EH3k381m6p99OoHvKDqrBwuXguqJyxGbtcMZO17jcc9O2jhzzzHrK3Y zzsg== MIME-Version: 1.0 X-Received: by 10.50.78.167 with SMTP id c7mr426432igx.6.1408732469014; Fri, 22 Aug 2014 11:34:29 -0700 (PDT) Sender: skip.montanaro@gmail.com In-Reply-To: References: Date: Fri, 22 Aug 2014 13:34:28 -0500 X-Google-Sender-Auth: 6N2E5_dUcQicEuTS3hb2d5db6z0 Subject: Re: Global indent From: Skip Montanaro To: Seymore4Head Content-Type: text/plain; charset=UTF-8 Cc: Python X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 11 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1408732472 news.xs4all.nl 2860 [2001:888:2000:d::a6]:56904 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:76806 On Fri, Aug 22, 2014 at 1:19 PM, Seymore4Head wrote: > Say I have a while statement with several lines of code and I want to > add a while outside that. That means indenting everything. Is there > a global way to do that? Depends on your text editor/IDE. In Emacs using either python-mode.el or python.el, I use C-c > to shift the selected region right, C-c < to shift it left. Other editors probably have similar commands. Skip